diff --git a/BUILD.gn b/BUILD.gn index 1a965c2f92efdd61d16ce1d8ea92b1f6dcbbd8d3..9d81e0a024dcd949543f8b4fc7e49ecf056b5901 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -11,7 +11,11 @@ # See the License for the specific language governing permissions and # limitations under the License. -import("//build/ohos.gni") +if (defined(ark_standalone_build)) { + import("//js_runtime/build/ark.gni") +} else { + import("//build/ohos.gni") +} config("config_static") { cflags = [ @@ -36,6 +40,12 @@ config("flag_config") { } config("jsoncpp_public_config") { + if (defined(ark_standalone_build)) { + cflags_cc = [ + "-fexceptions", + "-fPIC", + ] + } include_dirs = [ "//third_party/jsoncpp/include/" ] }