2016-07-01 18:09:28 +00:00
|
|
|
# Copyright (c) 2013 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.
|
|
|
|
|
|
|
|
# Debug/release ----------------------------------------------------------------
|
|
|
|
|
|
|
|
config("debug") {
|
2016-10-26 15:50:54 +00:00
|
|
|
defines = [ "DEBUG" ]
|
2016-07-01 18:09:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
config("release") {
|
2016-10-26 15:50:54 +00:00
|
|
|
defines = [ "NDEBUG" ]
|
2016-07-01 18:09:28 +00:00
|
|
|
}
|
|
|
|
|
2016-09-23 14:47:36 +00:00
|
|
|
config("product") {
|
|
|
|
defines = [
|
|
|
|
"NDEBUG",
|
|
|
|
"PRODUCT",
|
|
|
|
]
|
2016-07-01 18:09:28 +00:00
|
|
|
}
|
2023-03-02 23:07:16 +00:00
|
|
|
|
|
|
|
config("shared_library_config") {
|
|
|
|
if (current_os == "android" || current_os == "fuchsia" ||
|
|
|
|
current_os == "linux" || current_os == "mac") {
|
|
|
|
cflags = [ "-fPIC" ]
|
|
|
|
}
|
|
|
|
}
|