Skip to content

Commit 4778fba

Browse files
committed
Package the public header files
When making the package that reflects the prebuilt released library, include the header files under src/include, which constitute the public headers. PiperOrigin-RevId: 290353846
1 parent ec8c7f4 commit 4778fba

File tree

12 files changed

+16
-0
lines changed

12 files changed

+16
-0
lines changed

admob/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,4 @@ elseif(IOS)
122122
endif()
123123

124124
cpp_pack_library(firebase_admob "")
125+
cpp_pack_public_headers()

analytics/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,4 @@ if(FIREBASE_CPP_BUILD_TESTS)
135135
endif()
136136

137137
cpp_pack_library(firebase_analytics "")
138+
cpp_pack_public_headers()

app/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ if(FIREBASE_CPP_BUILD_TESTS)
367367
endif()
368368

369369
cpp_pack_library(firebase_app "")
370+
cpp_pack_public_headers()
370371
if (NOT ANDROID AND NOT IOS)
371372
cpp_pack_library(flatbuffers "deps/app/external")
372373
endif()

auth/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,4 @@ if(FIREBASE_CPP_BUILD_TESTS)
211211
endif()
212212

213213
cpp_pack_library(firebase_auth "")
214+
cpp_pack_public_headers()

cmake/cpp_pack.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,9 @@ function(cpp_pack_dir DIR_TO_PACK DESTINATION)
9595
DIRECTORY ${DIR_TO_PACK}
9696
DESTINATION ${DESTINATION}
9797
)
98+
endfunction()
99+
100+
# Packs the files located in the calling CMake file's src/include directory.
101+
function(cpp_pack_public_headers)
102+
cpp_pack_dir("${CMAKE_CURRENT_LIST_DIR}/src/include" .)
98103
endfunction()

database/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ if(FIREBASE_CPP_BUILD_TESTS)
211211
endif()
212212

213213
cpp_pack_library(firebase_database "")
214+
cpp_pack_public_headers()
214215
if (NOT ANDROID AND NOT IOS)
215216
cpp_pack_library(uv_a "deps/database/external")
216217
cpp_pack_library(libuWS "deps/database/external")

dynamic_links/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,4 @@ elseif(IOS)
8888
endif()
8989

9090
cpp_pack_library(firebase_dynamic_links "")
91+
cpp_pack_public_headers()

functions/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,4 @@ elseif(IOS)
105105
endif()
106106

107107
cpp_pack_library(firebase_functions "")
108+
cpp_pack_public_headers()

instance_id/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,4 @@ if(FIREBASE_CPP_BUILD_TESTS)
107107
endif()
108108

109109
cpp_pack_library(firebase_instance_id "")
110+
cpp_pack_public_headers()

messaging/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,4 @@ if(FIREBASE_CPP_BUILD_TESTS)
126126
endif()
127127

128128
cpp_pack_library(firebase_messaging "")
129+
cpp_pack_public_headers()

0 commit comments

Comments
 (0)