Skip to content

Commit 9e70152

Browse files
committed
trying things
1 parent 7c9b1b1 commit 9e70152

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

measure/android/app/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ android {
66
compileSdkVersion 27
77
buildToolsVersion "27.0.3"
88

9+
packagingOptions {
10+
11+
}
12+
913
defaultConfig {
1014
applicationId "com.javascriptcore.profiler"
1115
minSdkVersion 21
1216
targetSdkVersion 27
1317
versionCode 1
1418
versionName "1.0"
15-
ndk {
16-
abiFilters "armeabi-v7a", "x86"
17-
}
1819
}
1920
signingConfigs {
2021
release {

measure/scripts/measure.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const _ = require('lodash');
22
const exec = require('shell-utils').exec;
33

4-
const TIMES = 10;
4+
const TIMES = 4;
55

66
const PACKAGE_NAME = 'com.javascriptcore.profiler';
77
const ACTIVITY_NAME = 'MainActivity';

scripts/compile/all.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ compile_arch() {
2020
}
2121

2222
compile() {
23-
for arch in arm x86
24-
do
25-
export JSC_ARCH=$arch
26-
export ENABLE_COMPAT=1
27-
compile_arch
28-
done
23+
# for arch in arm x86
24+
# do
25+
# export JSC_ARCH=$arch
26+
# export ENABLE_COMPAT=1
27+
# compile_arch
28+
# done
2929

30-
for arch in arm64 x86_64
30+
for arch in arm64 #x86_64
3131
do
3232
export JSC_ARCH=$arch
3333
export ENABLE_COMPAT=0

scripts/compile/common.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ COMMON_CFLAGS=" \
137137
-DPIC \
138138
-fPIC \
139139
-fvisibility=hidden \
140-
-DNDEBUG \
141140
$SWITCH_COMMON_CFLAGS_INTL \
142141
"
143142

scripts/compile/jsc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $JSC_LDFLAGS \
2727
$PLATFORM_LDFLAGS \
2828
"
2929

30-
$TARGETDIR/webkit/Tools/Scripts/build-webkit \
30+
CC="$TOOLCHAIN_DIR/bin/aarch64-linux-android-gcc" $TARGETDIR/webkit/Tools/Scripts/build-webkit \
3131
--jsc-only \
3232
--release \
3333
--jit \
@@ -39,7 +39,7 @@ $TARGETDIR/webkit/Tools/Scripts/build-webkit \
3939
--cmakeargs="-DCMAKE_SYSTEM_NAME=Android \
4040
$SWITCH_BUILD_WEBKIT_CMAKE_ARGS_COMPAT \
4141
-DCMAKE_SYSTEM_VERSION=$ANDROID_API \
42-
-DCMAKE_SYSTEM_PROCESSOR=$ARCH \
42+
-DCMAKE_SYSTEM_PROCESSOR=aarch64 \
4343
-DCMAKE_ANDROID_STANDALONE_TOOLCHAIN=$TOOLCHAIN_DIR \
4444
-DWEBKIT_LIBRARIES_INCLUDE_DIR=$TARGETDIR/icu/source/common \
4545
-DWEBKIT_LIBRARIES_LINK_DIR=$TARGETDIR/icu/${CROSS_COMPILE_PLATFORM}-${FLAVOR}/lib \

scripts/start.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ createAAR() {
6161
cd $ROOTDIR
6262
}
6363

64-
export I18N=false
65-
prep
66-
compile
67-
createAAR
64+
# export I18N=false
65+
# prep
66+
# compile
67+
# createAAR
6868

6969
export I18N=true
7070
prep

0 commit comments

Comments
 (0)