Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit bded6c6

Browse files
committed
[build] use plain text files for file lists to simplify integration with other build systems
1 parent 1b4398f commit bded6c6

18 files changed

+1235
-1237
lines changed

CMakeLists.txt

-3
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,13 @@ if (COMMAND mbgl_filesource)
146146
include(cmake/filesource.cmake)
147147
endif()
148148

149-
include(cmake/core-files.cmake)
150149
include(cmake/core.cmake)
151150

152151
if(COMMAND mbgl_platform_test)
153-
include(cmake/test-files.cmake)
154152
include(cmake/test.cmake)
155153
endif()
156154

157155
if(COMMAND mbgl_platform_benchmark)
158-
include(cmake/benchmark-files.cmake)
159156
include(cmake/benchmark.cmake)
160157
endif()
161158

cmake/benchmark-files.cmake

-28
This file was deleted.

cmake/benchmark-files.txt

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This file is generated. Do not edit. Regenerate this with scripts/generate-cmake-files.js
2+
3+
# api
4+
benchmark/api/query.benchmark.cpp
5+
benchmark/api/render.benchmark.cpp
6+
7+
# benchmark
8+
benchmark/include/mbgl/benchmark.hpp
9+
benchmark/src/main.cpp
10+
benchmark/src/mbgl/benchmark/benchmark.cpp
11+
benchmark/src/mbgl/benchmark/stub_geometry_tile_feature.hpp
12+
13+
# function
14+
benchmark/function/camera_function.benchmark.cpp
15+
benchmark/function/composite_function.benchmark.cpp
16+
benchmark/function/source_function.benchmark.cpp
17+
18+
# parse
19+
benchmark/parse/filter.benchmark.cpp
20+
benchmark/parse/tile_mask.benchmark.cpp
21+
benchmark/parse/vector_tile.benchmark.cpp
22+
23+
# util
24+
benchmark/util/dtoa.benchmark.cpp
25+
benchmark/util/tilecover.benchmark.cpp
26+

cmake/benchmark.cmake

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
add_executable(mbgl-benchmark
2-
${MBGL_BENCHMARK_FILES}
3-
)
1+
load_sources_list(MBGL_BENCHMARK_FILES cmake/benchmark-files.txt)
2+
add_executable(mbgl-benchmark ${MBGL_BENCHMARK_FILES})
43

54
target_include_directories(mbgl-benchmark
65
PRIVATE src

0 commit comments

Comments
 (0)