| # Copyright 2021 The Cobalt Authors. All Rights Reserved. |
| # |
| # 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. |
| |
| group("gn_all") { |
| testonly = true |
| |
| deps = [ ":starboard_headers_only" ] |
| } |
| |
| group("starboard") { |
| deps = [ ":starboard_headers_only" ] |
| |
| if (sb_evergreen) { |
| deps += [] |
| } else { |
| public_deps = [ "//$starboard_path:starboard_platform" ] |
| |
| if (final_executable_type == "shared_library" && |
| current_toolchain != default_toolchain) { |
| set_defaults("executable") { |
| sources = [ "//starboard/shared/starboard/shared_main_adapter.cc" ] |
| } |
| } |
| } |
| } |
| |
| source_set("starboard_headers_only") { |
| sources = [ |
| "atomic.h", |
| "audio_sink.h", |
| "blitter.h", |
| "byte_swap.h", |
| "character.h", |
| "condition_variable.h", |
| "configuration.h", |
| "configuration_constants.h", |
| "cpu_features.h", |
| "decode_target.h", |
| "directory.h", |
| "double.h", |
| "drm.h", |
| "egl.h", |
| "event.h", |
| "export.h", |
| "file.h", |
| "gles.h", |
| "input.h", |
| "key.h", |
| "log.h", |
| "media.h", |
| "memory.h", |
| "microphone.h", |
| "mutex.h", |
| "once.h", |
| "player.h", |
| "queue.h", |
| "socket.h", |
| "socket_waiter.h", |
| "spin_lock.h", |
| "storage.h", |
| "string.h", |
| "system.h", |
| "thread.h", |
| "thread_types.h", |
| "time.h", |
| "time_zone.h", |
| "types.h", |
| "user.h", |
| "window.h", |
| |
| # Include private headers, if present. |
| # "<!@pymod_do_main(starboard.build.gyp_functions file_glob <(DEPTH)/starboard/private *.h)", |
| ] |
| } |