Skip to content

Commit 08f47af

Browse files
committed
Build Firebase.Editor.dll
1 parent 68b051f commit 08f47af

File tree

3 files changed

+32
-12
lines changed

3 files changed

+32
-12
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ option(FIREBASE_INCLUDE_REMOTE_CONFIG
5151
option(FIREBASE_INCLUDE_STORAGE
5252
"Include the Cloud Storage for Firebase library." ON)
5353

54+
option(FIREBASE_INCLUDE_EDITOR_TOOL
55+
"Include Unity editor tools for Firebase library." ON)
5456
option(FIREBASE_UNITY_BUILD_TESTS
5557
"Enable the Firebase Unity Build Tests." OFF)
5658

@@ -218,6 +220,11 @@ set(TARGET_LINK_LIB_NAMES "firebase_app" "firebase_app_swig" "flatbuffers")
218220
set(PROJECT_LIST_HEADER "#define PROJECT_LIST(X)")
219221
list(APPEND PROJECT_LIST_HEADER " X(App)")
220222

223+
# Include Firebase editor tools.
224+
if (FIREBASE_INCLUDE_EDITOR_TOOL)
225+
add_subdirectory(editor)
226+
endif()
227+
221228
if (FIREBASE_INCLUDE_ANALYTICS)
222229
add_subdirectory(analytics)
223230
list(APPEND TARGET_LINK_LIB_NAMES "firebase_analytics" "firebase_analytics_swig")

editor/CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2021 Google
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
add_subdirectory(app)

editor/app/CMakeLists.txt

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ else()
2323
set(firebase_app_editor_eap_src "")
2424
endif()
2525

26-
mono_add_library(firebase_app_editor_cs
27-
MODULE
28-
Firebase.Editor
29-
SOURCES
26+
set(firebase_app_editor_src
3027
src/AndroidAPILevelChecker.cs
3128
src/ApiInfo.cs
3229
src/AssemblyInfo.cs
@@ -51,25 +48,26 @@ mono_add_library(firebase_app_editor_cs
5148
src/Link.Designer.cs
5249
src/Link.resx
5350
${firebase_app_editor_eap_src}
51+
)
52+
53+
mono_add_library(firebase_app_editor_cs
54+
MODULE
55+
Firebase.Editor
56+
SOURCES
57+
${firebase_app_editor_src}
5458
REFERENCES
5559
unity_editor_cs
5660
unity_engine_cs
5761
unity_ios_extensions_xcode_cs
5862
google_jar_resolver_cs
5963
google_ios_resolver_cs
60-
google_version_handler_cs
6164
google_version_handlerimpl_cs
6265
SYSTEM_REFERENCES
6366
System.Xml
64-
DEFINES
65-
UNITY_EDITOR
67+
XBUILD_EXE
68+
${XBUILD_EXE}
6669
)
6770

6871
unity_pack_cs(firebase_app_editor_cs
6972
PACK_PATH "Firebase/Editor/"
7073
)
71-
72-
set_property(TARGET firebase_app_editor_cs
73-
PROPERTY FOLDER
74-
"Firebase ${FIREBASE_PLATFORM_NAME}"
75-
)

0 commit comments

Comments
 (0)