Skip to content

Build Firebase.Editor.dll #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ option(FIREBASE_INCLUDE_REMOTE_CONFIG
option(FIREBASE_INCLUDE_STORAGE
"Include the Cloud Storage for Firebase library." ON)

option(FIREBASE_INCLUDE_EDITOR_TOOL
"Include Unity editor tools for Firebase library." ON)
option(FIREBASE_UNITY_BUILD_TESTS
"Enable the Firebase Unity Build Tests." OFF)

Expand Down Expand Up @@ -216,6 +218,11 @@ set(TARGET_LINK_LIB_NAMES "firebase_app" "firebase_app_swig" "flatbuffers")
set(PROJECT_LIST_HEADER "#define PROJECT_LIST(X)")
list(APPEND PROJECT_LIST_HEADER " X(App)")

# Include Firebase editor tools.
if (FIREBASE_INCLUDE_EDITOR_TOOL)
add_subdirectory(editor)
endif()

if (FIREBASE_INCLUDE_ANALYTICS)
add_subdirectory(analytics)
list(APPEND TARGET_LINK_LIB_NAMES "firebase_analytics" "firebase_analytics_swig")
Expand Down
15 changes: 15 additions & 0 deletions editor/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2021 Google
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

add_subdirectory(app)
22 changes: 10 additions & 12 deletions editor/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ else()
set(firebase_app_editor_eap_src "")
endif()

mono_add_library(firebase_app_editor_cs
MODULE
Firebase.Editor
SOURCES
set(firebase_app_editor_src
src/AndroidAPILevelChecker.cs
src/ApiInfo.cs
src/AssemblyInfo.cs
Expand All @@ -51,25 +48,26 @@ mono_add_library(firebase_app_editor_cs
src/Link.Designer.cs
src/Link.resx
${firebase_app_editor_eap_src}
)

mono_add_library(firebase_app_editor_cs
MODULE
Firebase.Editor
SOURCES
${firebase_app_editor_src}
REFERENCES
unity_editor_cs
unity_engine_cs
unity_ios_extensions_xcode_cs
google_jar_resolver_cs
google_ios_resolver_cs
google_version_handler_cs
google_version_handlerimpl_cs
SYSTEM_REFERENCES
System.Xml
DEFINES
UNITY_EDITOR
XBUILD_EXE
${XBUILD_EXE}
)

unity_pack_cs(firebase_app_editor_cs
PACK_PATH "Firebase/Editor/"
)

set_property(TARGET firebase_app_editor_cs
PROPERTY FOLDER
"Firebase ${FIREBASE_PLATFORM_NAME}"
)