Changeset 287


Ignore:
Timestamp:
Apr 23, 2011, 12:55:51 AM (14 years ago)
Author:
dmik
Message:

env.cmd: Added -t<target_list> flag to specify which targets to build in more elegant (and b22-compatible) way.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/env.cmd

    r273 r287  
    3737
    3838/*
    39  * get flags
    40  */
     39 * get options
     40 */
     41
    4142aFlags = ''
    42 if (left(aArgs, 1) == '-') then do
    43     parse var aArgs '-'aFlags aArgs
    44 end
     43fTargets = ''
     44aNewArgs = ''
     45
     46do i = 1 to words(aArgs)
     47    a = word(aArgs, i)
     48    if (left(a, 1) == '-') then do
     49        f = substr(a, 2, 1)
     50        select
     51            when f == 't' then do
     52                fTargets = substr(a, 3)
     53            end
     54            otherwise do
     55                aFlags = aFlags || substr(a, 2)
     56            end
     57        end
     58    end
     59    else do
     60        aNewArgs = aNewArgs' 'a
     61    end
     62end
     63aArgs = strip(aNewArgs)
     64drop aNewArgs
    4565
    4666if (verify(aFlags, 'Hh?', 'M')) then do
    4767    say 'Flags for 'ScriptFile':'
    48     say ' -r    Start commands in release environment'
    49     say ' -l    Use debug version of LIBC DLL'
    50     say ' -L    Use log check version of LIBC DLL'
    51     say ' -j    Enable java launcher debug output'
    52     say ' -o    Enable Odin extended logging'
    53     say ' -R    Start commands in PRODUCT RELEASE environment'
     68    say ' -r        Start commands in release environment'
     69    say ' -l        Use debug version of LIBC DLL'
     70    say ' -L        Use log check version of LIBC DLL'
     71    say ' -j        Enable java launcher debug output'
     72    say ' -o        Enable Odin extended logging'
     73    say ' -R        Start commands in PRODUCT RELEASE environment'
     74    say ' -t<list>  Narrow down the list of targets (possble values are'
     75    say '           jdk,hotspot,jaxp,jaxws,corba,langtools)'
    5476
    5577    if (UnderSE) then call EnvSet 'SE_CMD_ARGS', 'exit'
     
    6486fProductRelease = pos('R', aFlags) \= 0
    6587
     88fTargets = translate(fTargets, ' ', ',')
     89
    6690if (fProductRelease) then fRelease = 1
    6791
     
    148172call EnvSetIfEmpty 'ALT_FREETYPE_LIB_PATH', UnixSlashes(ScriptDir'libs\freetype\lib')
    149173call EnvSetIfEmpty 'ALT_JDK_IMPORT_PATH', UnixSlashes(G.PATH_JDK_IMPORT)
     174
     175if (fTargets \== '') then do
     176    call EnvSet 'SKIP_BUILD_JDK', 'true'
     177    call EnvSet 'SKIP_BUILD_HOTSPOT', 'true'
     178    call EnvSet 'SKIP_BUILD_JAXP', 'true'
     179    call EnvSet 'SKIP_BUILD_JAXWS', 'true'
     180    call EnvSet 'SKIP_BUILD_CORBA', 'true'
     181    call EnvSet 'SKIP_BUILD_LANGTOOLS', 'true'
     182    do i = 1 to words(fTargets)
     183        call EnvSet 'SKIP_BUILD_'translate(word(fTargets, i))
     184    end
     185end
    150186
    151187/**
  • trunk/openjdk/Makefile

    r278 r287  
    9797
    9898ifeq ($(BUILD_LANGTOOLS), true)
     99ifneq ($(SKIP_BUILD_LANGTOOLS), true)
    99100  generic_build_repo_series:: langtools
    100101  clobber:: langtools-clobber
    101102endif
     103endif
    102104
    103105ifeq ($(BUILD_CORBA), true)
     106ifneq ($(SKIP_BUILD_CORBA), true)
    104107  generic_build_repo_series:: corba
    105108  clobber:: corba-clobber
    106109endif
     110endif
    107111
    108112ifeq ($(BUILD_JAXP), true)
     113ifneq ($(SKIP_BUILD_JAXP), true)
    109114  generic_build_repo_series:: jaxp
    110115  clobber:: jaxp-clobber
    111116endif
     117endif
    112118
    113119ifeq ($(BUILD_JAXWS), true)
     120ifneq ($(SKIP_BUILD_JAXWS), true)
    114121  generic_build_repo_series:: jaxws
    115122  clobber:: jaxws-clobber
    116123endif
     124endif
    117125
    118126ifeq ($(BUILD_HOTSPOT), true)
     127ifneq ($(SKIP_BUILD_HOTSPOT), true)
    119128  generic_build_repo_series:: $(HOTSPOT)
    120129  clobber:: hotspot-clobber
    121130endif
     131endif
    122132
    123133ifeq ($(BUILD_JDK), true)
     134ifneq ($(SKIP_BUILD_JDK), true)
    124135  generic_build_repo_series:: $(JDK_JAVA_EXE)
    125136  clobber:: jdk-clobber
     137endif
    126138endif
    127139
Note: See TracChangeset for help on using the changeset viewer.