• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14#DEFINES +=_AIX
15#DEFINES +=_GLIBCXX_BITS_STD_ABS_H
16#DEFINES +=__CORRECT_ISO_CPP_STDLIB_H_PROTO
17#DEFINES += __CORRECT_ISO_CPP11_MATH_H_PROTO_FP
18#DEFINES +=__CORRECT_ISO_CPP_MATH_H_PROTO
19#DEFINES +=_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
20
21INCLUDEPATH +=$${ROOTSRCDIR}/include
22INCLUDEPATH +=$${ROOTSRCDIR}/
23CONFIG(debug, debug|release){
24   BUILDVERSION = _debug
25   message("debug")
26}else{
27   message("release")
28   BUILDVERSION =
29   DEFINES += NDEBUG
30}
31contains(QT_ARCH, i386) {
32    message("qmake" $$TARGET "32-bit")
33    BIT = x32
34} else {
35    message("qmake" $$TARGET "64-bit")
36    BIT =
37}
38macx{
39    PLATFORM = macx
40    TOOL =
41    BIT =
42}
43unix:!macx {
44    PLATFORM = linux
45    TOOL =
46    BIT =
47}
48win32 {
49    PLATFORM = windows
50    TOOL =
51}
52DESTFOLDER =$${PLATFORM}$${BIT}$${TOOL}$${BUILDVERSION}
53CONFIG(lib){
54DESTDIR = $${ROOTSRCDIR}/lib/$${DESTFOLDER}
55} else {
56DESTDIR = $${ROOTSRCDIR}/out/$${DESTFOLDER}
57}
58unix{
59QMAKE_CXXFLAGS += -BigObj
60INCLUDEPATH += $$DESTDIR/gen/build_config
61INCLUDEPATH += $$DESTDIR/gen
62INCLUDEPATH +=/usr/include/c++/7
63INCLUDEPATH +=/usr/include/x86_64-linux-gnu/
64} else {
65INCLUDEPATH += $${GENDIR}/gen/build_config
66INCLUDEPATH += $${GENDIR}/gen
67DEFINES += WIN32
68QMAKE_CXXFLAGS += -BigObj
69staticlib{
70QMAKE_CXXFLAGS += -Ofast -flto
71}
72}
73OBJECTS_DIR = $${ROOTSRCDIR}/tmp_$${TARGET}_$${DESTFOLDER}
74