Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qml #63

Merged
merged 17 commits into from
Aug 13, 2016
Merged

Qml #63

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 29 additions & 14 deletions BiliLocal.pro
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ SOURCES += \
src/Render/ARender.cpp \
src/Render/ASprite.cpp \
src/UI/Interface.cpp \
src/Bundle.cpp \
src/Config.cpp \
src/Local.cpp \
src/Utils.cpp \
src/Plugin.cpp
src/Plugin.cpp \
src/Utils.cpp

HEADERS += \
src/Access/AccessPrivate.h \
Expand Down Expand Up @@ -66,10 +67,11 @@ HEADERS += \
src/Render/PFormat.h \
src/UI/Interface.h \
src/UI/InterfacePrivate.h \
src/Bundle.h \
src/Config.h \
src/Local.h \
src/Utils.h \
src/Plugin.h
src/Plugin.h \
src/Utils.h

INCLUDEPATH += \
src
Expand All @@ -84,6 +86,10 @@ TRANSLATIONS += \
res/zh_CN.ts \
res/zh_TW.ts

CONFIG(debug, debug|release){
DEFINES += GRAPHIC_DEBUG
}

linux : !android{
DEFINES += \
BACKEND_VLC \
Expand All @@ -103,7 +109,7 @@ LIBS += \
}

win32{
RC_ICONS = BiliLocal.ico
RC_ICONS = res\icon.ico

DEFINES += \
BACKEND_VLC \
Expand Down Expand Up @@ -169,6 +175,9 @@ DISTFILES += \
res/Android/gradle/wrapper/gradle-wrapper.properties \
res/Android/gradlew.bat

RESOURCES += \
src/UI/Quick2/BundleQuick2.qrc

ANDROID_PACKAGE_SOURCE_DIR = $$PWD/res/Android
}

Expand All @@ -177,25 +186,25 @@ QT += widgets

SOURCES += \
src/UI/Widget/Editor.cpp \
src/UI/Widget/Home.cpp \
src/UI/Widget/Info.cpp \
src/UI/Widget/Jump.cpp \
src/UI/Widget/Menu.cpp \
src/UI/Widget/Prefer.cpp \
src/UI/Widget/Search.cpp \
src/UI/Widget/Type.cpp \
src/UI/Widget/WidgetInterfacePrivate.cpp \
src/UI/Widget/WidgetUtils.cpp
src/UI/Widget/WidgetInterfacePrivate.cpp

HEADERS += \
src/UI/Widget/Editor.h \
src/UI/Widget/Home.h \
src/UI/Widget/Info.h \
src/UI/Widget/Jump.h \
src/UI/Widget/Menu.h \
src/UI/Widget/Prefer.h \
src/UI/Widget/Search.h \
src/UI/Widget/Type.h \
src/UI/Widget/WidgetInterfacePrivate.h \
src/UI/Widget/WidgetUtils.h
src/UI/Widget/WidgetInterfacePrivate.h

message(enable widget interface)
}
Expand All @@ -207,9 +216,15 @@ QT+= \

lupdate_only{
SOURCES += \
src/UI/Quick2/Interface.qml
src/UI/Quick2/Home.qml \
src/UI/Quick2/Info.qml \
src/UI/Quick2/Interface.qml \
src/UI/Quick2/Menu.qml
}

SOURCES += \
src/UI/Quick2/Quick2InterfacePrivate.cpp

HEADERS += \
src/UI/Quick2/Export.h \
src/UI/Quick2/Quick2InterfacePrivate.h
Expand Down Expand Up @@ -242,19 +257,20 @@ message(enable raster render widget output)
contains(DEFINES, RENDER_OPENGL){
SOURCES += \
src/Render/OpenGL/OpenGLRender.cpp \
src/Render/OpenGL/Atlas.cpp \
src/Render/OpenGL/OpenGLAtlas.cpp \
src/Render/OpenGL/SyncTextureSprite.cpp \
src/Render/OpenGL/DetachPrivate.cpp \
src/Render/OpenGL/OpaquePrivate.cpp

HEADERS += \
src/Render/OpenGL/OpenGLRender.h \
src/Render/OpenGL/OpenGLRenderPrivate.h \
src/Render/OpenGL/Atlas.h \
src/Render/OpenGL/OpenGLAtlas.h \
src/Render/OpenGL/SyncTextureSprite.h \
src/Render/OpenGL/DetachPrivate.h \
src/Render/OpenGL/OpaquePrivate.h

message(enable opengl render detach output)

contains(QT, widgets){
HEADERS += \
src/Render/OpenGL/WidgetPrivate.h \
Expand All @@ -266,7 +282,6 @@ SOURCES += \

message(enable opengl render widget output)
message(enable opengl render window output)
message(enable opengl render detach output)
}

contains(QT, quick){
Expand Down
8 changes: 5 additions & 3 deletions res/Android/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,17 @@

</application>

<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="16"/>
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="22"/>
<supports-screens android:largeScreens="true" android:normalScreens="true" android:anyDensity="true" android:smallScreens="true"/>

<!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.
Remove the comment if you do not require these default permissions. -->
<!-- %%INSERT_PERMISSIONS -->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

<!-- The following comment will be replaced upon deployment with default features based on the dependencies of the application.
Remove the comment if you do not require these default features. -->
<!-- %%INSERT_FEATURES -->
<uses-feature android:glEsVersion="0x00020000" android:required="true"/>

</manifest>
Binary file modified res/Android/res/drawable-hdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/Android/res/drawable-ldpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/Android/res/drawable-mdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
75 changes: 0 additions & 75 deletions res/Quick2/Interface.qml

This file was deleted.

3 changes: 0 additions & 3 deletions res/Res.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,4 @@
<file>THANKS</file>
<file>DATA</file>
</qresource>
<qresource prefix="/Script">
<file>Quick2/Interface.qml</file>
</qresource>
</RCC>
File renamed without changes.
Binary file modified res/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/version.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading