forked from alibaba/atlas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
99 lines (90 loc) · 3.02 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
cmake_minimum_required(VERSION 3.3)
project(ShakaAapt)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(AAPTROOT frameworks/base/tools/aapt)
set(aaptMain ${AAPTROOT}/Main.cpp)
set(aaptSources
${AAPTROOT}/AaptAssets.cpp
${AAPTROOT}/AaptConfig.cpp
${AAPTROOT}/AaptUtil.cpp
${AAPTROOT}/AaptXml.cpp
${AAPTROOT}/ApkBuilder.cpp
${AAPTROOT}/Command.cpp
${AAPTROOT}/CrunchCache.cpp
${AAPTROOT}/FileFinder.cpp
${AAPTROOT}/Images.cpp
${AAPTROOT}/Package.cpp
${AAPTROOT}/pseudolocalize.cpp
${AAPTROOT}/Resource.cpp
${AAPTROOT}/ResourceFilter.cpp
${AAPTROOT}/ResourceIdCache.cpp
${AAPTROOT}/ResourceTable.cpp
${AAPTROOT}/SourcePos.cpp
${AAPTROOT}/StringPool.cpp
${AAPTROOT}/WorkQueue.cpp
${AAPTROOT}/XMLNode.cpp
${AAPTROOT}/ZipEntry.cpp
${AAPTROOT}/ZipFile.cpp
)
set(LIB_androidfw_ROOT frameworks/base/libs/androidfw)
set(LIB_androidfw_commonSources
${LIB_androidfw_ROOT}/Asset.cpp
${LIB_androidfw_ROOT}/AssetDir.cpp
${LIB_androidfw_ROOT}/AssetManager.cpp
${LIB_androidfw_ROOT}/misc.cpp
${LIB_androidfw_ROOT}/ObbFile.cpp
${LIB_androidfw_ROOT}/ResourceTypes.cpp
${LIB_androidfw_ROOT}/StreamingZipInflater.cpp
${LIB_androidfw_ROOT}/TypeWrappers.cpp
${LIB_androidfw_ROOT}/ZipFileRO.cpp
${LIB_androidfw_ROOT}/ZipUtils.cpp)
set(LIB_LIBUTILS system/core/libutils)
set(LIB_LIBUTILS_commonSources
${LIB_LIBUTILS}/BlobCache.cpp
${LIB_LIBUTILS}/CallStack.cpp
${LIB_LIBUTILS}/FileMap.cpp
${LIB_LIBUTILS}/JenkinsHash.cpp
${LIB_LIBUTILS}/LinearTransform.cpp
${LIB_LIBUTILS}/Log.cpp
${LIB_LIBUTILS}/NativeHandle.cpp
${LIB_LIBUTILS}/Printer.cpp
${LIB_LIBUTILS}/ProcessCallStack.cpp
${LIB_LIBUTILS}/PropertyMap.cpp
${LIB_LIBUTILS}/RefBase.cpp
${LIB_LIBUTILS}/SharedBuffer.cpp
${LIB_LIBUTILS}/Static.cpp
${LIB_LIBUTILS}/StopWatch.cpp
${LIB_LIBUTILS}/String8.cpp
${LIB_LIBUTILS}/String16.cpp
${LIB_LIBUTILS}/SystemClock.cpp
${LIB_LIBUTILS}/Threads.cpp
${LIB_LIBUTILS}/Timers.cpp
${LIB_LIBUTILS}/Tokenizer.cpp
${LIB_LIBUTILS}/Unicode.cpp
${LIB_LIBUTILS}/VectorImpl.cpp
${LIB_LIBUTILS}/misc.cpp
)
set(LIB_EXPAT external/expat)
set(LIB_EXPAT_commonSources
${LIB_EXPAT}/lib/xmlparse.c
${LIB_EXPAT}/lib/xmlrole.c
${LIB_EXPAT}/lib/xmltok.c
${LIB_EXPAT}/lib/xmltok_impl.c
${LIB_EXPAT}/lib/xmltok_ns.c
)
set(SOURCE_FILES ${SOURCE_FILES}
${aaptMain}
${aaptSources}
${LIB_androidfw_commonSources}
${LIB_LIBUTILS_commonSources}
${LIB_EXPAT_commonSources}
)
include_directories(${AAPTROOT})
include_directories(frameworks/base/include
external/safe-iop/include
system/core/include
external/zlib
external/expat/lib
)
add_definitions(-DXML_TOK_IMPL_C)
add_executable(ShakaAapt ${SOURCE_FILES})