mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Added build support for the Default Plug-in. b=56761, r=jj, sr=sfraser.
This commit is contained in:
parent
cffc9ba629
commit
a5bac85212
@ -1531,38 +1531,46 @@ sub BuildPluginsProjects()
|
||||
{
|
||||
unless( $main::build{plugins} ) { return; }
|
||||
|
||||
# as a temporary measure, make sure that the folder "MacOS Support:JNIHeaders" exists,
|
||||
# before we attempt to build the MRJ plugin. This will allow a gradual transition.
|
||||
unless( -e GetCodeWarriorRelativePath("MacOS Support:JNIHeaders")) { return; }
|
||||
|
||||
StartBuildModule("plugins");
|
||||
|
||||
my($plugin_path) = ":mozilla:plugin:oji:MRJ:plugin:";
|
||||
my($project_path) = $plugin_path . "MRJPlugin.mcp";
|
||||
my($xml_path) = $plugin_path . "MRJPlugin.xml";
|
||||
my($project_modtime) = (-e $project_path ? GetFileModDate($project_path) : 0);
|
||||
my($xml_modtime) = (-e $xml_path ? GetFileModDate($xml_path) : 0);
|
||||
# as a temporary measure, make sure that the folder "MacOS Support:JNIHeaders" exists,
|
||||
# before we attempt to build the MRJ plugin. This will allow a gradual transition.
|
||||
if ( -e GetCodeWarriorRelativePath("MacOS Support:JNIHeaders"))
|
||||
{
|
||||
my($plugin_path) = ":mozilla:plugin:oji:MRJ:plugin:";
|
||||
my($project_path) = $plugin_path . "MRJPlugin.mcp";
|
||||
my($xml_path) = $plugin_path . "MRJPlugin.xml";
|
||||
my($project_modtime) = (-e $project_path ? GetFileModDate($project_path) : 0);
|
||||
my($xml_modtime) = (-e $xml_path ? GetFileModDate($xml_path) : 0);
|
||||
|
||||
if ($xml_modtime > $project_modtime) {
|
||||
print("MRJPlugin.mcp is out of date, reimporting from MRJPlugin.xml.\n");
|
||||
# delete the old project file.
|
||||
unlink($project_path);
|
||||
# import the xml project.
|
||||
ImportXMLProject(full_path_to($xml_path), full_path_to($project_path));
|
||||
}
|
||||
if ($xml_modtime > $project_modtime) {
|
||||
print("MRJPlugin.mcp is out of date, reimporting from MRJPlugin.xml.\n");
|
||||
# delete the old project file.
|
||||
unlink($project_path);
|
||||
# import the xml project.
|
||||
ImportXMLProject(full_path_to($xml_path), full_path_to($project_path));
|
||||
}
|
||||
|
||||
# Build MRJPlugin
|
||||
BuildProject($project_path, "MRJPlugin");
|
||||
# Build MRJPlugin.jar (if Java tools exist)
|
||||
my($linker_path) = GetCodeWarriorRelativePath("CodeWarrior Plugins:Linkers:Java Linker");
|
||||
if (-e $linker_path) {
|
||||
print("CodeWarrior Java tools detected, building MRJPlugin.jar.\n");
|
||||
BuildProject($project_path, "MRJPlugin.jar");
|
||||
}
|
||||
# Copy MRJPlugin, MRJPlugin.jar to appropriate plugins folder.
|
||||
# Build MRJPlugin
|
||||
BuildProject($project_path, "MRJPlugin");
|
||||
# Build MRJPlugin.jar (if Java tools exist)
|
||||
my($linker_path) = GetCodeWarriorRelativePath("CodeWarrior Plugins:Linkers:Java Linker");
|
||||
if (-e $linker_path) {
|
||||
print("CodeWarrior Java tools detected, building MRJPlugin.jar.\n");
|
||||
BuildProject($project_path, "MRJPlugin.jar");
|
||||
}
|
||||
# Copy MRJPlugin, MRJPlugin.jar to appropriate plugins folder.
|
||||
my($plugin_dist) = GetBinDirectory() . "Plug-ins:";
|
||||
MakeAlias($plugin_path . "MRJPlugin", $plugin_dist);
|
||||
MakeAlias($plugin_path . "MRJPlugin.jar", $plugin_dist);
|
||||
}
|
||||
|
||||
# Build the Default Plug-in and place an alias in the appropriate plugins folder.
|
||||
my($plugin_path) = ":mozilla:modules:plugin:default:mac:";
|
||||
my($plugin_dist) = GetBinDirectory() . "Plug-ins:";
|
||||
MakeAlias($plugin_path . "MRJPlugin", $plugin_dist);
|
||||
MakeAlias($plugin_path . "MRJPlugin.jar", $plugin_dist);
|
||||
|
||||
BuildProject($plugin_path . "NullPlugin.mcp", "NullPluginPPC");
|
||||
MakeAlias($plugin_path . "Default Plug-in", $plugin_dist);
|
||||
|
||||
EndBuildModule("plugins");
|
||||
}
|
||||
|
@ -55,6 +55,7 @@ viewer:Mozilla Select Profile
|
||||
; viewer:NSPR Logging
|
||||
viewer:Plug-ins:MRJPlugin
|
||||
viewer:Plug-ins:MRJPlugin.jar
|
||||
viewer:Plug-ins:Default Plug-in
|
||||
|
||||
viewer:Essential Files:gfx.shlb
|
||||
viewer:Essential Files:libimg.shlb
|
||||
|
Loading…
x
Reference in New Issue
Block a user