0029643: Samples: create .bat files for building AndroidQt sample on Windows platform
[occt.git] / samples / qt / AndroidQt / OCCT.pri
1 #
2 INCLUDEPATH += $$_PRO_FILE_PWD_/occt/inc $$_PRO_FILE_PWD_/3rdparty/include
3 DEPENDPATH  += $$_PRO_FILE_PWD_/occt/inc $$_PRO_FILE_PWD_/3rdparty/include
4
5 DEFINES += OCC_CONVERT_SIGNALS
6
7 CONFIG(debug,debug|release) {
8   DEFINES += DEB
9 }
10
11 occt_lib_subpath = libs/armeabi-v7a
12
13 occt_lib_path      = $$_PRO_FILE_PWD_/occt/$$occt_lib_subpath
14 3rdparty_lib_path  = $$_PRO_FILE_PWD_/3rdparty/$$occt_lib_subpath
15
16 android {
17     QMAKE_CFLAGS   += -fexceptions -Wno-ignored-qualifiers
18     QMAKE_CXXFLAGS += -fexceptions -Wno-ignored-qualifiers
19     LIBS += -L$$occt_lib_path -lEGL
20 }
21 win32 {
22     QMAKE_CXXFLAGS_WARN_ON += -W4
23     INCLUDEPATH += $$(CSF_OCCTIncludePath)
24     LIBS += -L$(CSF_OCCTLibPath);$(CSF_PRODLibPath)
25     LIBS += -lopengl32
26 }
27
28 LIBS += -lTKernel \
29         -lTKMath \
30         -lTKG2d \
31         -lTKG3d \
32         -lTKGeomBase \
33         -lTKBRep \
34         -lTKGeomAlgo \
35         -lTKTopAlgo \
36         -lTKShHealing \
37         -lTKService \
38         -lTKMesh \
39         -lTKHLR \
40         -lTKV3d \
41         -lTKOpenGl
42
43 # IMPORTANT. load libraries in a proper order
44 ANDROID_EXTRA_LIBS =  $$3rdparty_lib_path/libfreeimage.so \
45                       $$3rdparty_lib_path/libfreetype.so \
46                       $$occt_lib_path/libTKernel.so \
47                       $$occt_lib_path/libTKMath.so \
48                       $$occt_lib_path/libTKG2d.so \
49                       $$occt_lib_path/libTKG3d.so \
50                       $$occt_lib_path/libTKGeomBase.so \
51                       $$occt_lib_path/libTKBRep.so \
52                       $$occt_lib_path/libTKGeomAlgo.so \
53                       $$occt_lib_path/libTKTopAlgo.so \
54                       $$occt_lib_path/libTKShHealing.so \
55                       $$occt_lib_path/libTKService.so \
56                       $$occt_lib_path/libTKMesh.so \
57                       $$occt_lib_path/libTKHLR.so \
58                       $$occt_lib_path/libTKV3d.so \
59                       $$occt_lib_path/libTKOpenGl.so