2016-10-04 22:02:51 +00:00
|
|
|
{
|
2016-10-10 12:20:54 +00:00
|
|
|
"variables": {
|
2016-11-11 16:39:07 +00:00
|
|
|
"realm_node_build_as_library%": "0",
|
|
|
|
"realm_download_binaries%": "1"
|
2016-10-10 12:20:54 +00:00
|
|
|
},
|
2016-10-04 22:02:51 +00:00
|
|
|
"includes": [
|
2017-03-07 22:24:30 +00:00
|
|
|
"target_defaults.gypi",
|
2017-03-09 13:34:01 +00:00
|
|
|
"realm.gypi"
|
2016-10-04 22:02:51 +00:00
|
|
|
],
|
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"target_name": "realm",
|
|
|
|
"dependencies": [
|
|
|
|
"object-store"
|
|
|
|
],
|
|
|
|
"sources": [
|
|
|
|
"src/node/platform.cpp",
|
|
|
|
"src/js_realm.cpp"
|
|
|
|
],
|
|
|
|
"include_dirs": [
|
|
|
|
"src"
|
|
|
|
],
|
2016-10-10 12:20:54 +00:00
|
|
|
"conditions": [
|
|
|
|
["realm_node_build_as_library", {
|
|
|
|
"type": "static_library",
|
|
|
|
"export_dependent_settings": [ "object-store" ]
|
|
|
|
}, {
|
|
|
|
"sources": [
|
|
|
|
"src/node/node_init.cpp"
|
|
|
|
]
|
|
|
|
}]
|
|
|
|
]
|
2016-10-04 22:02:51 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"target_name": "object-store",
|
2016-11-09 15:47:17 +00:00
|
|
|
"dependencies": [ "realm-core" ],
|
2016-10-04 22:02:51 +00:00
|
|
|
"type": "static_library",
|
2016-10-10 12:20:54 +00:00
|
|
|
"include_dirs": [
|
|
|
|
"src/object-store/src",
|
|
|
|
"src/object-store/external/pegtl"
|
|
|
|
],
|
2017-07-12 00:11:49 +00:00
|
|
|
"defines": [ "REALM_PLATFORM_NODE=1" ],
|
2016-10-04 22:02:51 +00:00
|
|
|
"sources": [
|
2017-03-09 18:09:05 +00:00
|
|
|
"src/object-store/src/binding_callback_thread_observer.cpp",
|
2016-10-04 22:02:51 +00:00
|
|
|
"src/object-store/src/collection_notifications.cpp",
|
|
|
|
"src/object-store/src/index_set.cpp",
|
|
|
|
"src/object-store/src/list.cpp",
|
2017-01-18 11:39:56 +00:00
|
|
|
"src/object-store/src/object.cpp",
|
2017-08-16 15:11:46 +00:00
|
|
|
"src/object-store/src/placeholder.cpp",
|
2016-10-04 22:02:51 +00:00
|
|
|
"src/object-store/src/object_schema.cpp",
|
|
|
|
"src/object-store/src/object_store.cpp",
|
|
|
|
"src/object-store/src/results.cpp",
|
|
|
|
"src/object-store/src/schema.cpp",
|
|
|
|
"src/object-store/src/shared_realm.cpp",
|
2017-01-04 14:07:25 +00:00
|
|
|
"src/object-store/src/thread_safe_reference.cpp",
|
2016-10-04 22:02:51 +00:00
|
|
|
"src/object-store/src/impl/collection_change_builder.cpp",
|
|
|
|
"src/object-store/src/impl/collection_notifier.cpp",
|
|
|
|
"src/object-store/src/impl/list_notifier.cpp",
|
2017-01-18 11:39:56 +00:00
|
|
|
"src/object-store/src/impl/object_notifier.cpp",
|
2017-08-29 22:24:16 +00:00
|
|
|
"src/object-store/src/impl/primitive_list_notifier.cpp",
|
2016-10-04 22:02:51 +00:00
|
|
|
"src/object-store/src/impl/realm_coordinator.cpp",
|
|
|
|
"src/object-store/src/impl/results_notifier.cpp",
|
|
|
|
"src/object-store/src/impl/transact_log_handler.cpp",
|
|
|
|
"src/object-store/src/impl/weak_realm_notifier.cpp",
|
|
|
|
"src/object-store/src/parser/parser.cpp",
|
|
|
|
"src/object-store/src/parser/query_builder.cpp",
|
|
|
|
"src/object-store/src/util/format.cpp",
|
2017-08-16 15:11:46 +00:00
|
|
|
"src/object-store/src/util/uuid.cpp",
|
2016-10-04 22:02:51 +00:00
|
|
|
],
|
|
|
|
"conditions": [
|
2017-03-07 22:24:30 +00:00
|
|
|
["OS=='win'", {
|
|
|
|
"sources": [
|
|
|
|
"src/object-store/src/impl/windows/external_commit_helper.cpp",
|
|
|
|
]
|
|
|
|
}],
|
2016-10-04 22:02:51 +00:00
|
|
|
["OS=='linux'", {
|
|
|
|
"sources": [
|
2016-11-28 16:41:45 +00:00
|
|
|
"src/object-store/src/impl/epoll/external_commit_helper.cpp",
|
2016-10-04 22:02:51 +00:00
|
|
|
]
|
|
|
|
}],
|
|
|
|
["OS=='mac'", {
|
|
|
|
"sources": [
|
2016-11-14 19:57:01 +00:00
|
|
|
"src/object-store/src/impl/apple/external_commit_helper.cpp",
|
2017-05-05 09:47:12 +00:00
|
|
|
"src/object-store/src/impl/apple/keychain_helper.cpp",
|
|
|
|
"src/object-store/src/sync/impl/apple/network_reachability_observer.cpp",
|
|
|
|
"src/object-store/src/sync/impl/apple/system_configuration.cpp"
|
2016-10-04 22:02:51 +00:00
|
|
|
]
|
2016-11-09 15:47:17 +00:00
|
|
|
}],
|
|
|
|
["realm_enable_sync", {
|
|
|
|
"dependencies": [ "realm-sync" ],
|
|
|
|
"sources": [
|
|
|
|
"src/object-store/src/sync/sync_manager.cpp",
|
|
|
|
"src/object-store/src/sync/sync_user.cpp",
|
|
|
|
"src/object-store/src/sync/sync_session.cpp",
|
2017-09-28 22:31:22 +00:00
|
|
|
"src/object-store/src/sync/sync_config.cpp",
|
2017-10-02 18:29:36 +00:00
|
|
|
"src/object-store/src/sync/partial_sync.cpp",
|
2016-11-09 15:47:17 +00:00
|
|
|
"src/object-store/src/sync/impl/sync_file.cpp",
|
2016-11-14 19:57:01 +00:00
|
|
|
"src/object-store/src/sync/impl/sync_metadata.cpp"
|
2016-11-09 15:47:17 +00:00
|
|
|
],
|
2016-10-04 22:02:51 +00:00
|
|
|
}]
|
|
|
|
],
|
|
|
|
"all_dependent_settings": {
|
2017-07-12 00:11:49 +00:00
|
|
|
"defines": [ "REALM_PLATFORM_NODE=1" ],
|
2016-11-09 15:47:17 +00:00
|
|
|
"include_dirs": [
|
2016-10-10 12:20:54 +00:00
|
|
|
"src/object-store/src",
|
|
|
|
"src/object-store/src/impl",
|
|
|
|
"src/object-store/src/impl/apple",
|
|
|
|
"src/object-store/src/parser",
|
|
|
|
"src/object-store/external/pegtl"
|
|
|
|
]
|
2016-10-04 22:02:51 +00:00
|
|
|
},
|
|
|
|
"export_dependent_settings": [
|
|
|
|
"<@(_dependencies)" # re-export settings related to linking the realm binaries
|
|
|
|
]
|
2016-10-10 12:20:54 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"conditions": [
|
|
|
|
["not realm_node_build_as_library", {
|
|
|
|
"targets": [
|
2016-10-04 22:02:51 +00:00
|
|
|
{
|
2016-10-10 12:20:54 +00:00
|
|
|
"target_name": "action_after_build",
|
|
|
|
"type": "none",
|
|
|
|
"dependencies": [ "<(module_name)" ],
|
|
|
|
"copies": [
|
|
|
|
{
|
|
|
|
"files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
|
|
|
|
"destination": "<(module_path)"
|
|
|
|
}
|
|
|
|
]
|
2016-10-04 22:02:51 +00:00
|
|
|
}
|
|
|
|
]
|
2016-10-10 12:20:54 +00:00
|
|
|
}]
|
2016-10-04 22:02:51 +00:00
|
|
|
]
|
|
|
|
}
|