2012-12-16 15:06:14 +00:00
|
|
|
QT += opengl
|
|
|
|
QT -= gui
|
|
|
|
TARGET = Native
|
|
|
|
TEMPLATE = lib
|
|
|
|
CONFIG += staticlib
|
|
|
|
|
2012-12-23 07:46:44 +00:00
|
|
|
include(Settings.pri)
|
|
|
|
|
2014-06-17 16:48:10 +00:00
|
|
|
INCLUDEPATH += $$P/native
|
|
|
|
|
2014-06-17 05:52:46 +00:00
|
|
|
!contains(DEFINES,USING_GLES2) {
|
2013-11-21 18:07:18 +00:00
|
|
|
SOURCES += $$P/native/ext/glew/glew.c
|
|
|
|
HEADERS += $$P/native/ext/glew/GL/*.h
|
2014-06-17 16:48:10 +00:00
|
|
|
INCLUDEPATH += $$P/native/ext/glew
|
2012-12-23 07:46:44 +00:00
|
|
|
}
|
|
|
|
|
2013-03-31 06:55:48 +00:00
|
|
|
# RG_ETC1
|
2013-03-29 15:16:40 +00:00
|
|
|
|
2013-11-21 18:07:18 +00:00
|
|
|
SOURCES += $$P/native/ext/rg_etc1/rg_etc1.cpp
|
|
|
|
HEADERS += $$P/native/ext/rg_etc1/rg_etc1.h
|
|
|
|
INCLUDEPATH += $$P/native/ext/rg_etc1
|
2012-12-16 15:06:14 +00:00
|
|
|
|
2013-12-14 23:46:11 +00:00
|
|
|
# Cityhash
|
|
|
|
|
|
|
|
SOURCES += ../native/ext/cityhash/city.cpp
|
|
|
|
HEADERS += ../native/ext/cityhash/*.h
|
|
|
|
INCLUDEPATH += ../native/ext/cityhash
|
|
|
|
|
2013-07-05 04:53:55 +00:00
|
|
|
# JPGE
|
2013-11-21 18:07:18 +00:00
|
|
|
SOURCES += $$P/native/ext/jpge/*.cpp
|
|
|
|
HEADERS += $$P/native/ext/jpge/*.h
|
|
|
|
INCLUDEPATH += $$P/native/ext/jpge
|
2013-07-05 04:53:55 +00:00
|
|
|
|
2012-12-16 15:06:14 +00:00
|
|
|
# Stb_vorbis
|
|
|
|
|
2013-11-21 18:07:18 +00:00
|
|
|
SOURCES += $$P/native/ext/stb_vorbis/stb_vorbis.c
|
|
|
|
HEADERS += $$P/native/ext/stb_vorbis/stb_vorbis.h
|
|
|
|
INCLUDEPATH += $$P/native/ext/stb_vorbis
|
2012-12-16 15:06:14 +00:00
|
|
|
|
2012-12-31 07:52:57 +00:00
|
|
|
# Snappy
|
|
|
|
|
2013-11-21 18:07:18 +00:00
|
|
|
SOURCES += $$P/ext/snappy/*.cpp
|
|
|
|
HEADERS += $$P/ext/snappy/*.h
|
|
|
|
INCLUDEPATH += $$P/ext/snappy
|
2012-12-31 07:52:57 +00:00
|
|
|
|
2013-11-26 17:02:29 +00:00
|
|
|
# VJSON
|
|
|
|
|
|
|
|
SOURCES += $$P/native/ext/vjson/json.cpp \
|
|
|
|
$$P/native/ext/vjson/block_allocator.cpp
|
|
|
|
HEADERS += $$P/native/ext/vjson/json.h \
|
|
|
|
$$P/native/ext/vjson/block_allocator.h
|
|
|
|
INCLUDEPATH += $$P/native/ext/vjson
|
|
|
|
|
2012-12-16 15:06:14 +00:00
|
|
|
# Zlib
|
2013-11-21 12:36:02 +00:00
|
|
|
win32|contains(QT_CONFIG, no-zlib) {
|
2013-11-21 18:07:18 +00:00
|
|
|
SOURCES += $$P/ext/zlib/*.c
|
|
|
|
HEADERS += $$P/ext/zlib/*.h
|
2012-12-16 15:06:14 +00:00
|
|
|
}
|
|
|
|
|
2014-06-10 13:22:44 +00:00
|
|
|
# Libzip
|
|
|
|
SOURCES += $$P/native/ext/libzip/*.c
|
|
|
|
HEADERS += $$P/native/ext/libzip/*.h
|
2013-12-05 15:30:34 +00:00
|
|
|
|
2012-12-16 15:06:14 +00:00
|
|
|
# Native
|
|
|
|
|
2013-11-21 18:07:18 +00:00
|
|
|
SOURCES += $$P/native/audio/*.cpp \
|
2014-01-25 23:56:59 +00:00
|
|
|
$$P/native/base/backtrace.cpp \
|
2013-11-21 18:07:18 +00:00
|
|
|
$$P/native/base/buffer.cpp \
|
|
|
|
$$P/native/base/colorutil.cpp \
|
|
|
|
$$P/native/base/display.cpp \
|
|
|
|
$$P/native/base/error_context.cpp \
|
|
|
|
$$P/native/base/fastlist_test.cpp \
|
|
|
|
$$P/native/base/stringutil.cpp \
|
|
|
|
$$P/native/base/timeutil.cpp \
|
|
|
|
$$P/native/data/compression.cpp \
|
|
|
|
$$P/native/file/*.cpp \
|
|
|
|
$$P/native/gfx/gl_debug_log.cpp \
|
|
|
|
$$P/native/gfx/gl_lost_manager.cpp \
|
|
|
|
$$P/native/gfx/texture.cpp \
|
|
|
|
$$P/native/gfx/texture_atlas.cpp \
|
|
|
|
$$P/native/gfx/texture_gen.cpp \
|
|
|
|
$$P/native/gfx_es2/*.cpp \
|
|
|
|
$$P/native/gfx_es2/*.c \
|
|
|
|
$$P/native/i18n/*.cpp \
|
|
|
|
$$P/native/image/*.cpp \
|
|
|
|
$$P/native/input/*.cpp \
|
|
|
|
$$P/native/math/curves.cpp \
|
|
|
|
$$P/native/math/expression_parser.cpp \
|
|
|
|
$$P/native/math/math_util.cpp \
|
|
|
|
$$P/native/math/lin/*.cpp \
|
2014-06-17 04:23:16 +00:00
|
|
|
$$P/native/math/fast/*.c \
|
2013-11-21 18:07:18 +00:00
|
|
|
$$P/native/net/*.cpp \
|
|
|
|
$$P/native/profiler/profiler.cpp \
|
|
|
|
$$P/native/thread/*.cpp \
|
|
|
|
$$P/native/ui/*.cpp \
|
|
|
|
$$P/native/util/bits/*.cpp \
|
|
|
|
$$P/native/util/hash/hash.cpp \
|
|
|
|
$$P/native/util/random/perlin.cpp \
|
2013-11-26 13:04:29 +00:00
|
|
|
$$P/native/util/text/utf8.cpp \
|
|
|
|
$$P/native/util/text/parsers.cpp
|
2013-11-21 18:07:18 +00:00
|
|
|
|
2014-06-17 04:23:16 +00:00
|
|
|
armv7: SOURCES += $$files($$P/native/math/fast/fast_matrix_neon.S)
|
2014-03-24 00:38:17 +00:00
|
|
|
|
|
|
|
|
2013-11-21 18:07:18 +00:00
|
|
|
HEADERS += $$P/native/audio/*.h \
|
2014-01-25 23:56:59 +00:00
|
|
|
$$P/native/base/backtrace.h \
|
2013-11-21 18:07:18 +00:00
|
|
|
$$P/native/base/basictypes.h \
|
|
|
|
$$P/native/base/buffer.h \
|
|
|
|
$$P/native/base/color.h \
|
|
|
|
$$P/native/base/colorutil.h \
|
|
|
|
$$P/native/base/display.h \
|
|
|
|
$$P/native/base/error_context.h \
|
|
|
|
$$P/native/base/fastlist.h \
|
|
|
|
$$P/native/base/linked_ptr.h \
|
|
|
|
$$P/native/base/logging.h \
|
|
|
|
$$P/native/base/mutex.h \
|
|
|
|
$$P/native/base/scoped_ptr.h \
|
|
|
|
$$P/native/base/stats.h \
|
|
|
|
$$P/native/base/stringutil.h \
|
|
|
|
$$P/native/base/timeutil.h \
|
|
|
|
$$P/native/data/compression.h \
|
|
|
|
$$P/native/file/*.h \
|
|
|
|
$$P/native/gfx/*.h \
|
|
|
|
$$P/native/gfx_es2/*.h \
|
|
|
|
$$P/native/i18n/*.h \
|
|
|
|
$$P/native/image/*.h \
|
|
|
|
$$P/native/input/*.h \
|
|
|
|
$$P/native/math/*.h \
|
|
|
|
$$P/native/math/lin/*.h \
|
2014-06-17 04:23:16 +00:00
|
|
|
$$P/native/math/fast/*.h \
|
2013-11-21 18:07:18 +00:00
|
|
|
$$P/native/net/*.h \
|
|
|
|
$$P/native/profiler/profiler.h \
|
|
|
|
$$P/native/thread/*.h \
|
|
|
|
$$P/native/ui/*.h \
|
|
|
|
$$P/native/util/bits/*.h \
|
|
|
|
$$P/native/util/hash/hash.h \
|
|
|
|
$$P/native/util/random/*.h \
|
2013-11-26 13:04:29 +00:00
|
|
|
$$P/native/util/text/utf8.h \
|
|
|
|
$$P/native/util/text/parsers.h
|