Skip to content

Commit

Permalink
compile mkv8snapshot in host mode
Browse files Browse the repository at this point in the history
this permits actually using it for x-compiles

Change-Id: Id89e53cf2394e6f6773e2b06946769d4951eae80
Reviewed-by: Oswald Buddenhagen <[email protected]>
  • Loading branch information
ossilator committed Jun 13, 2012
1 parent f061136 commit daab0ec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
17 changes: 4 additions & 13 deletions src/tools/mkv8snapshot/mkv8snapshot.pro
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
TEMPLATE = app
TARGET = mkv8snapshot
QT =
CONFIG -= app_bundle
CONFIG -= qt
CONFIG += console
CONFIG += warn_off
option(host_build)
TARGET = mkv8snapshot$$qtPlatformTargetSuffix()
CONFIG -= qt app_bundle
CONFIG += console warn_off

DESTDIR = ../../../bin
LIBS =
Expand All @@ -13,12 +10,6 @@ OBJECTS_DIR = .
contains(QT_CONFIG, build_all): CONFIG += build_all
win32|mac:!macx-xcode: CONFIG += debug_and_release

TARGET = $$TARGET$$qtPlatformTargetSuffix()

cross_compile {
equals(QT_ARCH, arm): V8_TARGET_ARCH = arm
}

include(../../v8/v8.pri)

cross_compile {
Expand Down
2 changes: 1 addition & 1 deletion src/tools/tools.pro
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TEMPLATE = subdirs
SUBDIRS =
!cross_compile:contains(QT_CONFIG, v8snapshot): SUBDIRS += mkv8snapshot
contains(QT_CONFIG, v8snapshot): SUBDIRS += mkv8snapshot
2 changes: 1 addition & 1 deletion src/v8/v8.pro
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ INCLUDEPATH -= $$MODULE_INCLUDES $$MODULE_INCLUDES/..

include(v8.pri)

!cross_compile:contains(QT_CONFIG, v8snapshot) {
contains(QT_CONFIG, v8snapshot) {
mkv8snapshot.commands = ../../bin/mkv8snapshot$$qtPlatformTargetSuffix() ${QMAKE_FILE_OUT}
DUMMY_FILE = v8.pro
mkv8snapshot.input = DUMMY_FILE
Expand Down

0 comments on commit daab0ec

Please sign in to comment.