!839 Standalone build

Merge pull request !839 from tsatsulya/standalone_build
This commit is contained in:
openharmony_ci 2024-09-17 01:38:43 +00:00 committed by Gitee
commit 4c43ee004b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 28 additions and 1 deletions

View File

@ -32,6 +32,19 @@ config("rtti") {
}
}
config("no_exceptions") {
if (is_linux) {
cflags_cc = [ "-fno-exceptions" ]
cflags_objcc = cflags_cc
}
}
config("optimize_speed") {
if (is_linux) {
cflags_cc = [ "-O3" ]
}
}
config("no_rtti") {
# Some sanitizer configs may require RTTI to be left enabled globally
if (!use_rtti) {

View File

@ -76,6 +76,15 @@ group("runtime_core") {
]
}
group("static_core") {
deps = [
"$ark_root/static_core/assembler:libarktsassembler",
"$ark_root/static_core/bytecode_optimizer:libarktsbytecodeopt",
"$ark_root/static_core/libpandabase:libarktsbase",
"$ark_root/static_core/libpandafile:libarktsfile",
]
}
group("toolchain") {
deps = []
if (target_cpu != "mipsel") {

View File

@ -11,7 +11,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import("$build_root/ark.gni")
if (ark_standalone_build) {
import("$build_root/ark.gni")
} else {
import("//build/ohos.gni")
}
config("icu_config") {
include_dirs = [
"//third_party/icu/icu4c/source/common",