Skip to content

Commit

Permalink
1. Add build FrameworkWizard in edksetup.bat
Browse files Browse the repository at this point in the history
2. Modify FrameworkWizard.bat to skip building and only run the program

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@934 6f19259b-4bc3-4df7-8a09-765794883524
  • Loading branch information
hche10x committed Jul 13, 2006
1 parent e42dab8 commit da1508d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 23 deletions.
56 changes: 33 additions & 23 deletions Tools/bin/FrameworkWizard.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
@REM

@echo on
@echo off

:check_java
if "%JAVA_HOME%"=="" goto no_jdk
Expand All @@ -19,44 +19,54 @@ if "%WORKSPACE%"=="" goto no_wks
if "%ANT_HOME%"=="" goto no_ant
:check_xmlbeans
if "%XMLBEANS_HOME%"=="" goto no_xmlbeans

set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%WORKSPACE%\Tools\bin;%XMLBEANS_HOME%\bin;%PATH%

set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\SurfaceArea.jar;%XMLBEANS_HOME%\lib\jsr173_1.0_api.jar;%XMLBEANS_HOME%\lib\xbean.jar;%XMLBEANS_HOME%\lib\xbean_xpath.jar;%XMLBEANS_HOME%\lib\xmlpublic.jar;%XMLBEANS_HOME%\lib\saxon8.jar;%XMLBEANS_HOME%\lib\resolver.jar;%WORKSPACE%\Tools\bin\FrameworkWizard.jar;.

@REM Build SurfaceArea first
call "ant" -f %WORKSPACE%\Tools\build.xml SurfaceArea

@REM Build Framework Wizard
call "ant" -f %WORKSPACE%\Tools\Source\FrameworkWizard\build.xml
:check_surfacearea
if not exist %WORKSPACE%\Tools\Jars\SurfaceArea.jar (
goto no_surfacearea
)
:check_frameworkwizard
if not exist %WORKSPACE%\Tools\bin\FrameworkWizard.jar (
goto no_frameworkwizard
)

@REM Run Framework Wizard
call "java" org.tianocore.frameworkwizard.FrameworkWizardUI

goto end

:no_jdk
echo.
echo !!! Please set JAVA_HOME !!!
echo.
@echo.
@echo !!! Please set JAVA_HOME !!!
@echo.
goto check_wks

:no_wks
echo.
echo !!! Please set WORKSPACE !!!
echo.
@echo.
@echo !!! Please set WORKSPACE !!!
@echo.
goto check_ant

:no_ant
echo.
echo !!! Please set ANT_HOME !!!
echo.
@echo.
@echo !!! Please set ANT_HOME !!!
@echo.
goto check_xmlbeans

:no_xmlbeans
echo.
echo !!! Please set XMLBEANS_HOME !!!
echo.
@echo.
@echo !!! Please set XMLBEANS_HOME !!!
@echo.
goto end

:no_surfacearea
@echo.
@echo !!! Please run edksetup.bat to build SurfaceArea.jar !!!
@echo.
goto end

:no_frameworkwizard
@echo.
@echo !!! Please run edksetup.bat to build FrameworkWizard.jar !!!
@echo.
goto end

:end
Expand Down
1 change: 1 addition & 0 deletions edksetup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\Common.jar
set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\GenBuild.jar
set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\cpptasks.jar
set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Jars\frameworktasks.jar
set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Bin\FrameworkWizard.jar

call ant -f %WORKSPACE%\Tools\build.xml C_Code

Expand Down
1 change: 1 addition & 0 deletions edksetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ else
# These should be ok as they are.
export CLASSPATH=$WORKSPACE/Tools/Jars/SurfaceArea.jar:$WORKSPACE/Tools/Jars/frameworktasks.jar:$WORKSPACE/Tools/Jars/cpptasks.jar:$WORKSPACE/Tools/Jars/GenBuild.jar:$XMLBEANS_HOME/lib/resolver.jar:$XMLBEANS_HOME/lib/xbean.jar:$XMLBEANS_HOME/lib/xmlpublic.jar:$XMLBEANS_HOME/lib/jsr173_1.0_api.jar:$XMLBEANS_HOME/lib/saxon8.jar:$XMLBEANS_HOME/lib/xbean_xpath.jar
export CLASSPATH=$CLASSPATH:$WORKSPACE/Tools/Jars/Common.jar
export CLASSPATH=$CLASSPATH:$WORKSPACE/Tools/Bin/FrameworkWizard.jar
export FRAMEWORK_TOOLS_PATH=$WORKSPACE/Tools/bin
export PATH=$FRAMEWORK_TOOLS_PATH:$ANT_HOME/bin:$JAVA_HOME/bin:$PATH
# In some unix-like system, following export is to export system's environment to user's environment
Expand Down

0 comments on commit da1508d

Please sign in to comment.