mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
56 lines
1.1 KiB
Plaintext
56 lines
1.1 KiB
Plaintext
# Copyright 2014 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import("config.gni")
|
|
if (is_clang) {
|
|
import("//build/config/clang/clang.gni")
|
|
}
|
|
if (is_posix) {
|
|
import("//build/config/gcc/gcc_version.gni")
|
|
}
|
|
|
|
visibility = [ "//sky/*" ]
|
|
|
|
# features ---------------------------------------------------------------------
|
|
|
|
config("features") {
|
|
defines = feature_defines_list
|
|
}
|
|
|
|
# inside_blink -----------------------------------------------------------------
|
|
|
|
config("inside_blink") {
|
|
defines = [
|
|
"BLINK_IMPLEMENTATION=1",
|
|
"INSIDE_BLINK",
|
|
]
|
|
}
|
|
|
|
# config -----------------------------------------------------------------------
|
|
|
|
config("config") {
|
|
include_dirs = [
|
|
".",
|
|
"$root_out_dir",
|
|
]
|
|
}
|
|
|
|
# The follow configs apply to all targets except for unit tests, which rely on
|
|
# static initializers.
|
|
config("non_test_config") {
|
|
cflags = []
|
|
|
|
if (is_clang) {
|
|
cflags += [ "-Wglobal-constructors" ]
|
|
}
|
|
}
|
|
|
|
group("engine") {
|
|
deps = [
|
|
"//sky/engine/platform",
|
|
"//sky/engine/public/sky",
|
|
"//sky/engine/web",
|
|
]
|
|
}
|