Skip to content

Commit

Permalink
Major Node.js update. Tested on Oreo but does not include hwbinder su…
Browse files Browse the repository at this point in the history
…pport.
  • Loading branch information
fdgonthier committed Jan 5, 2018
1 parent ff1cd2a commit ebb8690
Show file tree
Hide file tree
Showing 589 changed files with 1,022 additions and 132,518 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build.*
node_modules
104 changes: 104 additions & 0 deletions aosp_nougat.gypi
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
#
# Copyright (C) 2017 Opersys inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

{
"variables": {
"extra_cflags": [
"-I <(aosp_build_top)/external/libcxx/include",

# For Binder.
"-I <(aosp_build_top)/frameworks/native/include/",

# AOSP core libraries
"-I <(aosp_build_top)/system/core/include/",
]
},

"targets": [
{
"target_name": "jsbinder-binder64",
"defines": [
"AOSP_VERSION=7"
],
"sources": ["<@(jsbinder_sources)"],
"cflags": ["<@(extra_cflags)"],
"ldflags": ["<(aosp_crtbegin)"],
"libraries": [
"<(aosp_product_out)/system/lib64/libbinder.so"
]
}
],

"conditions": [
['target_arch==\"arm64\"', {
"targets": [
{
"target_name": "jsbinder-binder64",
"defines": [
"AOSP_VERSION=7"
],
"sources": ["<@(jsbinder_sources)"],
"cflags": ["<@(extra_cflags)"],
"ldflags": ["<(aosp_crtbegin)"],
"libraries": [
"<(aosp_product_out)/system/lib64/libbinder.so"
]
}
]
},
'target_arch==\"arm\"', {
"targets": [
{
"target_name": "jsbinder-binder32",
"defines": [
"BINDER_IPC_32BIT",
"AOSP_VERSION=7"
],
"sources": ["<@(jsbinder_sources)"],
"cflags": ["<@(extra_cflags)"],
"ldflags": ["<(aosp_crtbegin)"],
"libraries": [
"<(aosp_product_out)/system/lib/libbinder.so"
]
}
]
},
'target_arch==\"ia32\"', {
"targets": [
{
"target_name": "jsbinder-binder32",
"defines": [
"BINDER_IPC_32BIT",
"AOSP_VERSION=7"
],
"sources": ["<@(jsbinder_sources)"],
"cflags": ["<@(extra_cflags)"],
"ldflags": ["<(aosp_crtbegin)"],
"libraries": [
"<(aosp_product_out)/system/lib/libbinder.so"
]
}
]
}]
],

"targets": [
{
"target_name": "jsbinderversion",
"sources": ["<@(jsbinderversion_sources)"],
"cflags": ["<@(extra_cflags)"]
}
]
}
96 changes: 96 additions & 0 deletions aosp_oreo.gypi
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
#
# Copyright (C) 2017 Opersys inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

{
"variables": {
"extra_cflags": [
"--sysroot <(aosp_build_top)/prebuilts/clang/host/linux-x86/clang-4053586",
"-isystem <(aosp_build_top)/prebuilts/clang/host/linux-x86/clang-4053586/lib/clang/5.0/include",

"-nostdlibinc",

# LibC++
"-I <(aosp_build_top)/prebuilts/clang/host/linux-x86/clang-4053586/include/c++/v1",

# For Binder.
"-I <(aosp_build_top)/frameworks/native/libs/binder/include/",

# AOSP core libraries
"-I <(aosp_build_top)/system/core/libutils/include/",
"-I <(aosp_build_top)/system/core/base/include/",
"-I <(aosp_build_top)/system/core/libcutils/include",
"-I <(aosp_build_top)/system/core/liblog/include",
"-I <(aosp_build_top)/system/core/libsystem/include",
]
},


"targets": [
{
"target_name": "jsbinder-binder64",
"sources": ["<@(jsbinder_sources)"],
"cflags": ["<@(extra_cflags)"],
"ldflags": ["<(aosp_crtbegin)"],
"libraries": [
"<(aosp_product_out)/system/lib64/libbinder.so"
]
}
],

"conditions": [
['target_arch==\"arm64\"', {
"targets": [
{
"target_name": "jsbinder-binder64",
"sources": ["<@(jsbinder_sources)"],
"cflags+": [
"-isystem <(aosp_build_top)/prebuilts/clang/host/linux-x86/clang-4053586/lib64/clang/5.0/include",
"<@(extra_cflags)",
],
"ldflags": ["<(aosp_crtbegin)"],
"libraries": [
"<(aosp_product_out)/system/lib64/libbinder.so"
]
}
]
},
'target_arch==\"arm\"', {
"targets": [
{
"target_name": "jsbinder-binder32",
"defines": [
"BINDER_IPC_32BIT",
],
"sources": ["<@(jsbinder_sources)"],
"cflags+": [
"<@(extra_cflags)"
],
"ldflags": ["<(aosp_crtbegin)"],
"libraries": [
"<(aosp_product_out)/system/lib/libbinder.so"
]
}
]
}]
],

"targets": [
{
"target_name": "jsbinderversion",
"sources": ["<@(jsbinderversion_sources)"],
"cflags": ["<@(extra_cflags)"]
}
]
}
Loading

0 comments on commit ebb8690

Please sign in to comment.