Create environment (genproj.bat, msvc.bat, etc) for building AndroidQt sample on Windows platform (as well as it's done in other OCCT Qt samples)
--- /dev/null
+TEMPLATE=subdirs
+
+SUBDIRS=AndroidQt0
+
+AndroidQt0.file=AndroidQt.pro
DEFINES += OCC_CONVERT_SIGNALS
-QMAKE_CFLAGS += -fexceptions -Wno-ignored-qualifiers
-QMAKE_CXXFLAGS += -fexceptions -Wno-ignored-qualifiers
-
CONFIG(debug,debug|release) {
DEFINES += DEB
}
occt_lib_path = $$_PRO_FILE_PWD_/occt/$$occt_lib_subpath
3rdparty_lib_path = $$_PRO_FILE_PWD_/3rdparty/$$occt_lib_subpath
+android {
+ QMAKE_CFLAGS += -fexceptions -Wno-ignored-qualifiers
+ QMAKE_CXXFLAGS += -fexceptions -Wno-ignored-qualifiers
+ LIBS += -L$$occt_lib_path -lEGL
+}
+win32 {
+ QMAKE_CXXFLAGS_WARN_ON += -W4
+ INCLUDEPATH += $$(CSF_OCCTIncludePath)
+ LIBS += -L$(CSF_OCCTLibPath);$(CSF_PRODLibPath)
+ LIBS += -lopengl32
+}
-LIBS += -L$$occt_lib_path \
- -lTKernel \
+LIBS += -lTKernel \
-lTKMath \
-lTKG2d \
-lTKG3d \
-lTKMesh \
-lTKHLR \
-lTKV3d \
- -lTKOpenGl \
- -lEGL
+ -lTKOpenGl
# IMPORTANT. load libraries in a proper order
ANDROID_EXTRA_LIBS = $$3rdparty_lib_path/libfreeimage.so \
--- /dev/null
+@echo off
+rem Define QTDIR variable
+
+set "QTDIR="
--- /dev/null
+@echo off
+
+call "%~dp0..\..\..\env.bat" %1 %2 %3
+
+call "custom.bat" %1 %2 %3
+
+set "RES_DIR=%~dp0win%ARCH%\%VCVER%\res"
+set "CSF_ResourcesDefaults=%RES_DIR%"
+
+set "PATH=%QTDIR%/bin;%PATH%"
--- /dev/null
+@echo off
+REM Generation of vcproj files with qmake utilite
+REM Variable QTDIR and PATH to qmake executable must be defined without fail
+
+REM Use first argument to specify version of Visual Studio (vc10, vc11, vc12 or vc14),
+REM second argument specifies architecture) (win32 or win64)
+REM third argument specifies Debug or Release mode
+
+call "%~dp0env.bat" %1 %2 %3
+call "%VCVARS%" %VCARCH%
+qmake -tp vc -r -o AndroidQt.sln AndroidQt0.pro
--- /dev/null
+@echo off
+
+Setlocal EnableDelayedExpansion
+
+rem Setup environment
+call "%~dp0env.bat" %1 %2 %3
+
+rem Define path to project file
+set "PRJFILE=%~dp0AndroidQt.sln"
+
+rem Launch Visual Studio - either professional (devenv) or Express, as available
+if exist "%DevEnvDir%\devenv.exe" (
+ start "" "%DevEnvDir%\devenv.exe" "%PRJFILE%"
+) else if exist "%DevEnvDir%\%VisualStudioExpressName%.exe" (
+ start "" "%DevEnvDir%\%VisualStudioExpressName%.exe" "%PRJFILE%"
+) else (
+ echo Error: Could not find MS Visual Studio ^(%VCVER%^)
+ echo Check relevant environment variable ^(e.g. VS100COMNTOOLS for vc10^)
+)