xref: /third_party/gn/examples/simple_build/BUILD.gn
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/gn/examples/simple_build/
16d528ed9Sopenharmony_ci# Copyright 2014 The Chromium Authors. All rights reserved.
26d528ed9Sopenharmony_ci# Use of this source code is governed by a BSD-style license that can be
36d528ed9Sopenharmony_ci# found in the LICENSE file.
46d528ed9Sopenharmony_ci
56d528ed9Sopenharmony_ciexecutable("hello") {
66d528ed9Sopenharmony_ci  sources = [ "hello.cc" ]
76d528ed9Sopenharmony_ci
86d528ed9Sopenharmony_ci  deps = [
96d528ed9Sopenharmony_ci    ":hello_shared",
106d528ed9Sopenharmony_ci    ":hello_static",
116d528ed9Sopenharmony_ci  ]
126d528ed9Sopenharmony_ci}
136d528ed9Sopenharmony_ci
146d528ed9Sopenharmony_cishared_library("hello_shared") {
156d528ed9Sopenharmony_ci  sources = [
166d528ed9Sopenharmony_ci    "hello_shared.cc",
176d528ed9Sopenharmony_ci    "hello_shared.h",
186d528ed9Sopenharmony_ci  ]
196d528ed9Sopenharmony_ci
206d528ed9Sopenharmony_ci  defines = [ "HELLO_SHARED_IMPLEMENTATION" ]
216d528ed9Sopenharmony_ci}
226d528ed9Sopenharmony_ci
236d528ed9Sopenharmony_cistatic_library("hello_static") {
246d528ed9Sopenharmony_ci  sources = [
256d528ed9Sopenharmony_ci    "hello_static.cc",
266d528ed9Sopenharmony_ci    "hello_static.h",
276d528ed9Sopenharmony_ci  ]
286d528ed9Sopenharmony_ci}
29

Indexes created Thu Nov 07 10:32:03 CST 2024