mirror of
https://github.com/openharmony/js_util_module.git
synced 2026-07-19 18:23:35 -04:00
modify TS container compilation rule change
Signed-off-by: wangyong <wangyong237@huawei.com>
This commit is contained in:
+1
-1
@@ -124,7 +124,7 @@ template("container_lib") {
|
||||
subsystem_name = "compileruntime"
|
||||
part_name = "jsapi_util"
|
||||
|
||||
relative_install_dir = "module"
|
||||
relative_install_dir = "module/util"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ static napi_value ArrayListInit(napi_env env, napi_value exports)
|
||||
return exports;
|
||||
}
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_arraylist_GetJSCode(const char **buf, int *bufLen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_ArrayList_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_js_arraylist_js_start;
|
||||
@@ -38,7 +38,7 @@ __attribute__((visibility("default"))) void NAPI_arraylist_GetJSCode(const char
|
||||
}
|
||||
}
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_arraylist_GetABCCode(const char **buf, int *buflen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_ArrayList_GetABCCode(const char **buf, int *buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_arraylist_abc_start;
|
||||
@@ -62,4 +62,4 @@ extern "C" __attribute__((constructor)) void RegisterModule()
|
||||
{
|
||||
napi_module_register(&arrayListModule);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ static napi_value DequeInit(napi_env env, napi_value exports)
|
||||
return exports;
|
||||
}
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_deque_GetJSCode(const char **buf, int *bufLen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_Deque_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_js_deque_js_start;
|
||||
@@ -38,7 +38,7 @@ __attribute__((visibility("default"))) void NAPI_deque_GetJSCode(const char **bu
|
||||
}
|
||||
}
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_deque_GetABCCode(const char **buf, int *buflen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_Deque_GetABCCode(const char **buf, int *buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_deque_abc_start;
|
||||
|
||||
@@ -24,7 +24,7 @@ if (arkPritvate !== undefined) {
|
||||
}
|
||||
|
||||
if (flag || fastHashMap === undefined) {
|
||||
const HashMapAbility = requireNapi("struct");
|
||||
const HashMapAbility = requireNapi("util.struct");
|
||||
interface IterableIterator<T> {
|
||||
next: () => {
|
||||
value: T | undefined;
|
||||
@@ -164,4 +164,4 @@ if (flag || fastHashMap === undefined) {
|
||||
|
||||
export default {
|
||||
HashMap: fastHashMap,
|
||||
};
|
||||
};
|
||||
|
||||
@@ -29,7 +29,7 @@ static napi_value HashMapInit(napi_env env, napi_value exports)
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_hashmap_GetJSCode(const char **buf, int *bufLen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_HashMap_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_js_hashmap_js_start;
|
||||
@@ -40,7 +40,7 @@ __attribute__((visibility("default"))) void NAPI_hashmap_GetJSCode(const char **
|
||||
}
|
||||
}
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_hashmap_GetABCCode(const char** buf, int* buflen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_HashMap_GetABCCode(const char** buf, int* buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_hashmap_abc_start;
|
||||
|
||||
@@ -25,7 +25,7 @@ if (arkPritvate !== undefined) {
|
||||
}
|
||||
|
||||
if (flag || fastHashSet === undefined) {
|
||||
const HashSetAbility = requireNapi("struct");
|
||||
const HashSetAbility = requireNapi("util.struct");
|
||||
interface IterableIterator<T> {
|
||||
next: () => {
|
||||
value: T | undefined;
|
||||
|
||||
@@ -29,7 +29,7 @@ static napi_value HashSetInit(napi_env env, napi_value exports)
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_hashset_GetJSCode(const char **buf, int *bufLen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_HashSet_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_js_hashset_js_start;
|
||||
@@ -40,7 +40,7 @@ __attribute__((visibility("default"))) void NAPI_hashset_GetJSCode(const char **
|
||||
}
|
||||
}
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_hashset_GetABCCode(const char** buf, int* buflen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_HashSet_GetABCCode(const char** buf, int* buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_hashset_abc_start;
|
||||
|
||||
@@ -24,7 +24,7 @@ if (arkPritvate !== undefined) {
|
||||
}
|
||||
|
||||
if (flag || fastLightWeightMap === undefined) {
|
||||
const LightWeightAbility = requireNapi("struct");
|
||||
const LightWeightAbility = requireNapi("util.struct");
|
||||
interface IterableIterator<T> {
|
||||
next: () => {
|
||||
value: T | undefined;
|
||||
|
||||
@@ -29,7 +29,7 @@ static napi_value LightWeightMapInit(napi_env env, napi_value exports)
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_lightweightmap_GetJSCode(const char **buf, int *bufLen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_LightWeightMap_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_js_lightweightmap_js_start;
|
||||
@@ -41,7 +41,7 @@ __attribute__((visibility("default"))) void NAPI_lightweightmap_GetJSCode(const
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_lightweightmap_GetABCCode(const char** buf, int* buflen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_LightWeightMap_GetABCCode(const char** buf, int* buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_lightweightmap_abc_start;
|
||||
|
||||
@@ -24,7 +24,7 @@ if (arkPritvate !== undefined) {
|
||||
}
|
||||
|
||||
if (flag || fastLightWeightSet === undefined) {
|
||||
const LightWeightAbility = requireNapi("struct");
|
||||
const LightWeightAbility = requireNapi("util.struct");
|
||||
interface IterableIterator<T> {
|
||||
next: () => {
|
||||
value: T | undefined;
|
||||
|
||||
@@ -29,7 +29,7 @@ static napi_value LightWeightSetInit(napi_env env, napi_value exports)
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_lightweightset_GetJSCode(const char **buf, int *bufLen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_LightWeightSet_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_js_lightweightset_js_start;
|
||||
@@ -41,7 +41,7 @@ __attribute__((visibility("default"))) void NAPI_lightweightset_GetJSCode(const
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_lightweightset_GetABCCode(const char** buf, int* buflen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_LightWeightSet_GetABCCode(const char** buf, int* buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_lightweightset_abc_start;
|
||||
|
||||
@@ -29,7 +29,7 @@ static napi_value LinkedListInit(napi_env env, napi_value exports)
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_linkedlist_GetJSCode(const char **buf, int *bufLen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_LinkedList_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_js_linkedlist_js_start;
|
||||
@@ -40,7 +40,7 @@ __attribute__((visibility("default"))) void NAPI_linkedlist_GetJSCode(const char
|
||||
}
|
||||
}
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_linkedlist_GetABCCode(const char **buf, int *buflen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_LinkedList_GetABCCode(const char **buf, int *buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_linkedlist_abc_start;
|
||||
|
||||
@@ -27,7 +27,7 @@ static napi_value ListInit(napi_env env, napi_value exports)
|
||||
return exports;
|
||||
}
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_list_GetJSCode(const char **buf, int *bufLen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_List_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_js_list_js_start;
|
||||
@@ -38,7 +38,7 @@ __attribute__((visibility("default"))) void NAPI_list_GetJSCode(const char **buf
|
||||
}
|
||||
}
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_list_GetABCCode(const char **buf, int *buflen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_List_GetABCCode(const char **buf, int *buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_list_abc_start;
|
||||
|
||||
@@ -24,7 +24,7 @@ if (arkPritvate !== undefined) {
|
||||
}
|
||||
|
||||
if (flag || fastPlainArray === undefined) {
|
||||
const PlainAbility = requireNapi("struct");
|
||||
const PlainAbility = requireNapi("util.struct");
|
||||
interface IterableIterator<T> {
|
||||
next: () => {
|
||||
value: T | undefined;
|
||||
|
||||
@@ -29,7 +29,7 @@ static napi_value PlainArrayInit(napi_env env, napi_value exports)
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_plainarray_GetJSCode(const char **buf, int *bufLen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_PlainArray_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_js_plainarray_js_start;
|
||||
@@ -41,7 +41,7 @@ __attribute__((visibility("default"))) void NAPI_plainarray_GetJSCode(const char
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_plainarray_GetABCCode(const char** buf, int* buflen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_PlainArray_GetABCCode(const char** buf, int* buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_plainarray_abc_start;
|
||||
|
||||
@@ -27,7 +27,7 @@ static napi_value QueueInit(napi_env env, napi_value exports)
|
||||
return exports;
|
||||
}
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_queue_GetJSCode(const char **buf, int *bufLen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_Queue_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_js_queue_js_start;
|
||||
@@ -39,7 +39,7 @@ __attribute__((visibility("default"))) void NAPI_queue_GetJSCode(const char **bu
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_queue_GetABCCode(const char **buf, int *buflen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_Queue_GetABCCode(const char **buf, int *buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_queue_abc_start;
|
||||
|
||||
@@ -27,7 +27,7 @@ static napi_value StackInit(napi_env env, napi_value exports)
|
||||
return exports;
|
||||
}
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_stack_GetJSCode(const char **buf, int *bufLen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_Stack_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_js_stack_js_start;
|
||||
@@ -39,7 +39,7 @@ __attribute__((visibility("default"))) void NAPI_stack_GetJSCode(const char **bu
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_stack_GetABCCode(const char **buf, int *buflen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_Stack_GetABCCode(const char **buf, int *buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_stack_abc_start;
|
||||
|
||||
@@ -29,7 +29,7 @@ static napi_value StructInit(napi_env env, napi_value exports)
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_struct_GetJSCode(const char **buf, int *bufLen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_struct_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_js_struct_js_start;
|
||||
@@ -41,7 +41,7 @@ __attribute__((visibility("default"))) void NAPI_struct_GetJSCode(const char **b
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_struct_GetABCCode(const char** buf, int* buflen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_struct_GetABCCode(const char** buf, int* buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_struct_abc_start;
|
||||
|
||||
@@ -24,7 +24,7 @@ if (arkPritvate !== undefined) {
|
||||
}
|
||||
|
||||
if (flag || fastTreeMap === undefined) {
|
||||
const RBTreeAbility = requireNapi("struct")
|
||||
const RBTreeAbility = requireNapi("util.struct")
|
||||
interface IterableIterator<T> {
|
||||
next: () => {
|
||||
value: T | undefined;
|
||||
@@ -195,4 +195,4 @@ if (flag || fastTreeMap === undefined) {
|
||||
|
||||
export default {
|
||||
TreeMap: fastTreeMap,
|
||||
};
|
||||
};
|
||||
|
||||
@@ -29,7 +29,7 @@ static napi_value TreeMapInit(napi_env env, napi_value exports)
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_treemap_GetJSCode(const char **buf, int *bufLen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_TreeMap_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_js_treemap_js_start;
|
||||
@@ -41,7 +41,7 @@ __attribute__((visibility("default"))) void NAPI_treemap_GetJSCode(const char **
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_treemap_GetABCCode(const char** buf, int* buflen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_TreeMap_GetABCCode(const char** buf, int* buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_treemap_abc_start;
|
||||
|
||||
@@ -24,7 +24,7 @@ if (arkPritvate !== undefined) {
|
||||
}
|
||||
|
||||
if (flag || fastTreeSet === undefined) {
|
||||
const RBTreeAbility = requireNapi("struct");
|
||||
const RBTreeAbility = requireNapi("util.struct");
|
||||
interface IterableIterator<T> {
|
||||
next: () => {
|
||||
value: T | undefined;
|
||||
|
||||
@@ -29,7 +29,7 @@ static napi_value TreeSetInit(napi_env env, napi_value exports)
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_treeset_GetJSCode(const char **buf, int *bufLen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_TreeSet_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_js_treeset_js_start;
|
||||
@@ -41,7 +41,7 @@ __attribute__((visibility("default"))) void NAPI_treeset_GetJSCode(const char **
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_treeset_GetABCCode(const char** buf, int* buflen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_TreeSet_GetABCCode(const char** buf, int* buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_treeset_abc_start;
|
||||
|
||||
@@ -27,7 +27,7 @@ static napi_value VectorInit(napi_env env, napi_value exports)
|
||||
return exports;
|
||||
}
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_vector_GetJSCode(const char **buf, int *bufLen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_Vector_GetJSCode(const char **buf, int *bufLen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_js_vector_js_start;
|
||||
@@ -39,7 +39,7 @@ __attribute__((visibility("default"))) void NAPI_vector_GetJSCode(const char **b
|
||||
}
|
||||
|
||||
extern "C"
|
||||
__attribute__((visibility("default"))) void NAPI_vector_GetABCCode(const char **buf, int *buflen)
|
||||
__attribute__((visibility("default"))) void NAPI_util_Vector_GetABCCode(const char **buf, int *buflen)
|
||||
{
|
||||
if (buf != nullptr) {
|
||||
*buf = _binary_vector_abc_start;
|
||||
|
||||
Reference in New Issue
Block a user