aboutsummaryrefslogtreecommitdiff
path: root/build-config
diff options
context:
space:
mode:
authorJoshua Duong <joshuaduong@google.com>2022-10-05 09:47:10 -0700
committerJoshua Duong <joshuaduong@google.com>2022-10-05 09:47:10 -0700
commit4c567d3d0aadfea3be6f4ccd677e49868edee887 (patch)
tree973bbca2458529f56147ab7adeca0ed477ec8d94 /build-config
parent61ab1d5a9915cf9afce5d46fa60dc6b3d51da5ad (diff)
downloadaemu-4c567d3d0aadfea3be6f4ccd677e49868edee887.tar.gz
Add ability to use custom cmake build script.
With the addition of more source files that will soon take place, we need a mechanism for different projects to build only what it needs. Bug: 237805597 Test: presubmit Change-Id: I41edd4f05fb1ad2cfc651ba1a7cdbfe18ecd1345
Diffstat (limited to 'build-config')
-rw-r--r--build-config/gfxstream/CMakeLists.txt57
1 files changed, 57 insertions, 0 deletions
diff --git a/build-config/gfxstream/CMakeLists.txt b/build-config/gfxstream/CMakeLists.txt
new file mode 100644
index 0000000..4a57e34
--- /dev/null
+++ b/build-config/gfxstream/CMakeLists.txt
@@ -0,0 +1,57 @@
+# aemu-base overrides:
+# - aemu-base-srcs: aemu-base source files
+# - aemu-base-test-srcs: aemu-base test source files
+set(aemu-base-srcs
+ AlignedBuf.cpp
+ CompressingStream.cpp
+ CpuTime.cpp
+ DecompressingStream.cpp
+ FileUtils.cpp
+ FunctorThread.cpp
+ GLObjectCounter.cpp
+ HealthMonitor.cpp
+ LayoutResolver.cpp
+ MemStream.cpp
+ StdioStream.cpp
+ MemoryTracker.cpp
+ MessageChannel.cpp
+ PathUtils.cpp
+ ring_buffer.cpp
+ SharedLibrary.cpp
+ StringFormat.cpp
+ Stream.cpp
+ StreamSerializing.cpp
+ SubAllocator.cpp
+ System.cpp
+ Tracing.cpp)
+set(aemu-base-posix-srcs
+ SharedMemory_posix.cpp
+ Thread_pthread.cpp)
+set(aemu-base-windows-srcs
+ msvc.cpp
+ SharedMemory_win32.cpp
+ Thread_win32.cpp
+ Win32UnicodeString.cpp)
+
+if (APPLE)
+ set(aemu-base-platform-srcs ${aemu-base-posix-srcs} system-native-mac.mm)
+elseif (WIN32)
+ set(aemu-base-platform-srcs ${aemu-base-windows-srcs})
+else()
+ set(aemu-base-platform-srcs ${aemu-base-posix-srcs})
+endif()
+
+set(aemu-base-srcs ${aemu-base-srcs} ${aemu-base-platform-srcs} PARENT_SCOPE)
+
+set(aemu-base-test-srcs
+ AlignedBuf_unittest.cpp
+ HealthMonitor_unittest.cpp
+ ArraySize_unittest.cpp
+ LayoutResolver_unittest.cpp
+ LruCache_unittest.cpp
+ ManagedDescriptor_unittest.cpp
+ Optional_unittest.cpp
+ ring_buffer_unittest.cpp
+ StringFormat_unittest.cpp
+ SubAllocator_unittest.cpp
+ TypeTraits_unittest.cpp PARENT_SCOPE)