| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 loadable_module("openvr") { | 5 component("openvr") { |
| 6 output_name = "openvr_api" | 6 output_name = "openvr_api" |
| 7 | 7 |
| 8 # Some ascii versions of Windows APIs are used in this code. | 8 # Some ascii versions of Windows APIs are used in this code. |
| 9 configs -= [ "//build/config/win:unicode" ] | 9 configs -= [ "//build/config/win:unicode" ] |
| 10 | 10 |
| 11 # This code can be built using internal OpenVR functionality, but the internal | 11 # This code can be built using internal OpenVR functionality, but the internal |
| 12 # dependencies aren't available to us. | 12 # dependencies aren't available to us. |
| 13 defines = [ "VR_API_PUBLIC" ] | 13 defines = [ "VR_API_PUBLIC" ] |
| 14 | 14 |
| 15 sources = [ | 15 sources = [ |
| 16 "src/src/jsoncpp.cpp", | 16 "src/src/jsoncpp.cpp", |
| 17 "src/src/openvr_api_public.cpp", | 17 "src/src/openvr_api_public.cpp", |
| 18 "src/src/vrcommon/dirtools_public.cpp", | 18 "src/src/vrcommon/dirtools_public.cpp", |
| 19 "src/src/vrcommon/envvartools_public.cpp", | 19 "src/src/vrcommon/envvartools_public.cpp", |
| 20 "src/src/vrcommon/hmderrors_public.cpp", | 20 "src/src/vrcommon/hmderrors_public.cpp", |
| 21 "src/src/vrcommon/pathtools_public.cpp", | 21 "src/src/vrcommon/pathtools_public.cpp", |
| 22 "src/src/vrcommon/sharedlibtools_public.cpp", | 22 "src/src/vrcommon/sharedlibtools_public.cpp", |
| 23 "src/src/vrcommon/strtools_public.cpp", | 23 "src/src/vrcommon/strtools_public.cpp", |
| 24 "src/src/vrcommon/vrpathregistry_public.cpp", | 24 "src/src/vrcommon/vrpathregistry_public.cpp", |
| 25 ] | 25 ] |
| 26 | 26 |
| 27 if (target_cpu == "x64" && is_win) { |
| 28 defines += [ "WIN64" ] |
| 29 } |
| 30 |
| 27 include_dirs = [ | 31 include_dirs = [ |
| 28 "src/headers", | 32 "src/headers", |
| 29 "src/src", | 33 "src/src", |
| 30 "src/src/json", | 34 "src/src/json", |
| 31 "src/src/vrcommon", | 35 "src/src/vrcommon", |
| 32 ] | 36 ] |
| 33 } | 37 } |
| OLD | NEW |