Skip to content

Instantly share code, notes, and snippets.

View elfinlazz's full-sized avatar

ElFinLazz elfinlazz

  • Seoul, South Korea
View GitHub Profile

Building Chrome V8 on Windows

In order to be able to build v8 from scratch on Windows for x64, please follow the following steps.

These instructions were updated to work with Windows 11 Build 10.0.22621, but this should also work on WInodws 10

NOTE: While the Chrome team does provide decent documentation, there are some nuances and other additional steps that must be done for v8 to compile on Windows.

Documentation:

설정

PATH 변수에 Java 경로와 Android SDK 경로 설정이 필요하다.

환경 변수에 JAVA_HOME을 추가한다. JAVA_HOME의 값은 jdk가 설치된 디렉토리를 넣는다.

setx -m JAVA_HOME "C:\Program Files\Java\jdk1.7.0_21"

환경 변수에 ANDROID_HOME 을 추가한다. 이것은 반드시 필요하진 않고 아래 PATH 변수 추가의 편의를 위해 넣는다.

config.xml에 추가

phonegap document 상에는 config.xml 에 다음과 같은 식으로 추가하면 된다고 하나 저대로 하면 안된다.

<plugin name=PluginName value="org.apache.cordova.plugin.PluginClassName>

실제 코드(org/apache/cordova/PluginManager.java의 loadPlugins 메소드)를 보면 plugin element의 service명을 얻어와야 하는데 코드 상에 걸러주는 부분이 없다. 때문에 feature를 써야한다.

그래서 다음과 같이 추가하면 된다.