Skip to content
Permalink
Browse files

Configuring minibrowser build and execute [early stage]

  • Loading branch information...
RAJAGOPALAN-GANGADHARAN authored and pulkomandy committed Mar 17, 2019
1 parent e506367 commit ba318c89f7ebd39a28436b7ca343589dc29da2a5
@@ -0,0 +1,10 @@
SET(MiniBrowser_SOURCES
)

SET(MiniBrowser_LIBRARIES
)

ADD_EXECUTABLE(MiniBrowser ${MiniBrowser_SOURCES})
TARGET_LINK_LIBRARIES(MiniBrowser ${MiniBrowser_LIBRARIES})
SET_TARGET_PROPERTIES(MiniBrowser PROPERTIES FOLDER "Tools")
SET_TARGET_PROPERTIES(MiniBrowser PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
@@ -1,3 +1,4 @@
add_subdirectory(DumpRenderTree)
add_subdirectory(HaikuLauncher)
add_subdirectory(ImageDiff)
add_subdirectory(MiniBrowser/haiku)
@@ -58,6 +58,9 @@ if (isGtk() || isWPE()) {
} elsif (isAppleCocoaWebKit()) {
printHelpAndExitForRunAndDebugWebKitAppIfNeeded();
exit exitStatus(runMiniBrowser());
} elsif (isHaiku()) {
print "Starting MiniBrowser\n";
exit exitStatus(runMiniBrowser());
} else {
die "Unsupported platform."
}
}
@@ -2906,6 +2906,10 @@ sub runMiniBrowser
my $webKitLauncherPath = File::Spec->catfile(executableProductDir(), "MiniBrowser.exe");
return system { $webKitLauncherPath } $webKitLauncherPath, @ARGV;
}
if(isHaiku()){
my $webKitLauncherPath = File::Spec->catfile(productDir(), "MiniBrowser");
return system { $webKitLauncherPath } $webKitLauncherPath, @ARGV;
}
return 1;
}

0 comments on commit ba318c8

Please sign in to comment.
You can’t perform that action at this time.