Add the header files and scripts to the gyp file (#1540)

* Add the header files and scripts to the gyp file

This makes the generated project much more useful.

* Also add the tests
This commit is contained in:
Thomas Goyne 2017-11-29 17:21:45 -08:00 committed by GitHub
parent d127a228ea
commit 0eaa27f30f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 186 additions and 2 deletions

View File

@ -10,9 +10,37 @@
"object-store" "object-store"
], ],
"sources": [ "sources": [
"src/node/platform.cpp",
"src/js_realm.cpp", "src/js_realm.cpp",
"src/node/node_init.cpp" "src/node/node_init.cpp",
"src/node/platform.cpp",
"src/concurrent_deque.hpp",
"src/event_loop_dispatcher.hpp",
"src/js_class.hpp",
"src/js_collection.hpp",
"src/js_list.hpp",
"src/js_object_accessor.hpp",
"src/js_observable.hpp",
"src/js_realm.hpp",
"src/js_realm_object.hpp",
"src/js_results.hpp",
"src/js_schema.hpp",
"src/js_sync.hpp",
"src/js_types.hpp",
"src/js_util.hpp",
"src/node/node_class.hpp",
"src/node/node_context.hpp",
"src/node/node_exception.hpp",
"src/node/node_function.hpp",
"src/node/node_init.hpp",
"src/node/node_object.hpp",
"src/node/node_protected.hpp",
"src/node/node_return_value.hpp",
"src/node/node_string.hpp",
"src/node/node_types.hpp",
"src/node/node_value.hpp",
"src/platform.hpp",
"src/rpc.hpp",
], ],
"include_dirs": [ "include_dirs": [
"src" "src"
@ -28,6 +56,100 @@
"destination": "<(module_path)" "destination": "<(module_path)"
} }
] ]
},
{
"target_name": "scripts",
"type": "none",
"sources": [
"CHANGELOG.md",
"README.md",
"binding.gyp",
"dependencies.list",
"package.json",
"realm.gypi",
"target_defaults.gypi",
"lib/collection-methods.js",
"lib/errors.js",
"lib/extensions.js",
"lib/index.d.ts",
"lib/index.js",
"lib/management-schema.js",
"lib/permission-api.js",
"lib/submit-analytics.js",
"lib/user-methods.js",
"lib/browser/base64.js",
"lib/browser/collections.js",
"lib/browser/constants.js",
"lib/browser/index.js",
"lib/browser/lists.js",
"lib/browser/objects.js",
"lib/browser/results.js",
"lib/browser/rpc.js",
"lib/browser/session.js",
"lib/browser/user.js",
"lib/browser/util.js"
"scripts/build-node-pre-gyp.ps1",
"scripts/build-node-pre-gyp.sh",
"scripts/ccache-clang++.sh",
"scripts/ccache-clang.sh",
"scripts/changelog-header.sh",
"scripts/check-environment.js",
"scripts/docker-android-wrapper.sh",
"scripts/docker-wrapper.sh",
"scripts/docker_build_wrapper.sh",
"scripts/download-object-server.sh",
"scripts/download-realm.js",
"scripts/download_and_start_server.sh",
"scripts/find-ios-device.rb",
"scripts/git-win-symlink-aliases",
"scripts/handle-license-check.js",
"scripts/prepublish.js",
"scripts/publish.sh",
"scripts/react-tests-android.js",
"scripts/set-version.sh",
"scripts/test.sh",
"tests/.eslintrc.json",
"tests/index.js",
"tests/js/admin-user-helper.js",
"tests/js/asserts.js",
"tests/js/async-tests.js",
"tests/js/download-api-helper.js",
"tests/js/encryption-tests.js",
"tests/js/garbage-collection.js",
"tests/js/index.js",
"tests/js/linkingobjects-tests.js",
"tests/js/list-tests.js",
"tests/js/migration-tests.js",
"tests/js/object-id-tests.js",
"tests/js/object-tests.js",
"tests/js/package.json",
"tests/js/permission-tests.js",
"tests/js/query-tests.js",
"tests/js/query-tests.json",
"tests/js/realm-tests.js",
"tests/js/results-tests.js",
"tests/js/schemas.js",
"tests/js/session-tests.js",
"tests/js/user-tests.js",
"tests/js/worker-tests-script.js",
"tests/js/worker.js",
"tests/package.json",
"tests/spec/helpers/mock_realm.js",
"tests/spec/helpers/reporters.js",
"tests/spec/helpers/setup-module-path.js",
"tests/spec/support/jasmine.json",
"tests/spec/unit_tests.js",
"tests/test-runners/ava/package.json",
"tests/test-runners/ava/test.js",
"tests/test-runners/jest/package.json",
"tests/test-runners/jest/test.js",
"tests/test-runners/mocha/package.json",
"tests/test-runners/mocha/test.js",
]
} }
] ]
} }

View File

@ -63,6 +63,68 @@
"src/object-store/src/parser/query_builder.cpp", "src/object-store/src/parser/query_builder.cpp",
"src/object-store/src/util/format.cpp", "src/object-store/src/util/format.cpp",
"src/object-store/src/util/uuid.cpp", "src/object-store/src/util/uuid.cpp",
"src/object-store/src/binding_callback_thread_observer.hpp",
"src/object-store/src/binding_context.hpp",
"src/object-store/src/collection_notifications.hpp",
"src/object-store/src/descriptor_ordering.hpp",
"src/object-store/src/execution_context_id.hpp",
"src/object-store/src/feature_checks.hpp",
"src/object-store/src/impl/apple/external_commit_helper.hpp",
"src/object-store/src/impl/apple/keychain_helper.hpp",
"src/object-store/src/impl/collection_change_builder.hpp",
"src/object-store/src/impl/collection_notifier.hpp",
"src/object-store/src/impl/epoll/external_commit_helper.hpp",
"src/object-store/src/impl/external_commit_helper.hpp",
"src/object-store/src/impl/generic/external_commit_helper.hpp",
"src/object-store/src/impl/list_notifier.hpp",
"src/object-store/src/impl/notification_wrapper.hpp",
"src/object-store/src/impl/object_accessor_impl.hpp",
"src/object-store/src/impl/object_notifier.hpp",
"src/object-store/src/impl/primitive_list_notifier.hpp",
"src/object-store/src/impl/realm_coordinator.hpp",
"src/object-store/src/impl/results_notifier.hpp",
"src/object-store/src/impl/transact_log_handler.hpp",
"src/object-store/src/impl/weak_realm_notifier.hpp",
"src/object-store/src/impl/windows/external_commit_helper.hpp",
"src/object-store/src/index_set.hpp",
"src/object-store/src/list.hpp",
"src/object-store/src/object.hpp",
"src/object-store/src/object_accessor.hpp",
"src/object-store/src/object_schema.hpp",
"src/object-store/src/object_store.hpp",
"src/object-store/src/parser/parser.hpp",
"src/object-store/src/parser/query_builder.hpp",
"src/object-store/src/property.hpp",
"src/object-store/src/results.hpp",
"src/object-store/src/schema.hpp",
"src/object-store/src/shared_realm.hpp",
"src/object-store/src/sync/impl/apple/network_reachability_observer.hpp",
"src/object-store/src/sync/impl/apple/system_configuration.hpp",
"src/object-store/src/sync/impl/network_reachability.hpp",
"src/object-store/src/sync/impl/sync_client.hpp",
"src/object-store/src/sync/impl/sync_file.hpp",
"src/object-store/src/sync/impl/sync_metadata.hpp",
"src/object-store/src/sync/partial_sync.hpp",
"src/object-store/src/sync/sync_config.hpp",
"src/object-store/src/sync/sync_manager.hpp",
"src/object-store/src/sync/sync_permission.hpp",
"src/object-store/src/sync/sync_session.hpp",
"src/object-store/src/sync/sync_user.hpp",
"src/object-store/src/thread_safe_reference.hpp",
"src/object-store/src/util/aligned_union.hpp",
"src/object-store/src/util/android/event_loop_signal.hpp",
"src/object-store/src/util/any.hpp",
"src/object-store/src/util/apple/event_loop_signal.hpp",
"src/object-store/src/util/atomic_shared_ptr.hpp",
"src/object-store/src/util/compiler.hpp",
"src/object-store/src/util/event_loop_signal.hpp",
"src/object-store/src/util/format.hpp",
"src/object-store/src/util/generic/event_loop_signal.hpp",
"src/object-store/src/util/tagged_bool.hpp",
"src/object-store/src/util/time.hpp",
"src/object-store/src/util/uuid.hpp",
"src/object-store/src/util/uv/event_loop_signal.hpp",
], ],
"conditions": [ "conditions": [
["OS=='win'", { ["OS=='win'", {