ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyc in redsnow-0.4.3 vs ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyc in redsnow-0.4.4

- old
+ new

@@ -1,14 +1,14 @@  -Uc@sFddlZddlZddlZddlZddlZddlZddlZddlmZidd6dd6dd6dd6d d +C :Uc@sFddlZddlZddlZddlZddlZddlZddlZddlmZidd6dd6dd6dd6d d 6d d 6d d6dd6dd6dd6dd6dd6dd6dd6Ze Z e a ga gagaeadZdZdZd Zd!Zd"Zd#Zd$ed%ed&ed'ed(ed)Zd*Zd+Zd,Zd-Zd.Zd/Zid0d16d2d36d2d46d2d56d0d66d0d76Z d8Z!d9Z"d:Z#d;Z$d<Z%d=Z&d>Z'd?Z(da)d@Z*dAdBZ+iZ,iZ-dCfdDYZ.dEZ/dFZ0dGZ1dS(HiN(tGetEnvironFallbackttEXECUTABLE_PREFIXtEXECUTABLE_SUFFIXtlibtSTATIC_LIB_PREFIXtSHARED_LIB_PREFIXs.atSTATIC_LIB_SUFFIXs $(obj).$(TOOLSET)/$(TARGET)/genitINTERMEDIATE_DIRs $(obj)/gentSHARED_INTERMEDIATE_DIRs $(builddir)t PRODUCT_DIRs%(INPUT_ROOT)stRULE_INPUT_ROOTs%(INPUT_DIRNAME)stRULE_INPUT_DIRNAMEs $(abspath $<)tRULE_INPUT_PATHs $(suffix $<)tRULE_INPUT_EXTs $(notdir $<)tRULE_INPUT_NAMEs $(BUILDTYPE)tCONFIGURATION_NAMEcCs+tjj|}|dkr|jdd|jdd|jdtd|jdtddd ljj}t|d ga t|d ga t|d ga t j id d6dd6n[|}|dkrd}n|jd||jdd|jdd|jddd S(sDCalculate additional variables for use in the build (called by gyp).tmactOStSHARED_LIB_SUFFIXs.dylibtSHARED_LIB_DIRR tLIB_DIRiNt+generator_additional_non_configuration_keyst"generator_additional_path_sectionst!generator_extra_sources_for_rulestobjcs.mtobjcxxs.mmtandroidtlinuxs.sos$(builddir)/lib.$(TOOLSET)s$(obj).$(TOOLSET)(tgyptcommont GetFlavort -setdefaulttgenerator_default_variablestgyp.generator.xcodet generatortxcodetgetattrRRRtCOMPILABLE_EXTENSIONStupdate(tdefault_variablestparamstflavortxcode_generatortoperating_system((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pytCalculateVariables?s.          cCs|jdi}|jdd }|r3tan|djpJ|dj}|jdd}tjjtjj ||d}i|djd6|d6a +setdefaulttgenerator_default_variablestgyp.generator.xcodet generatortxcodetgetattrRRRtCOMPILABLE_EXTENSIONStupdate(tdefault_variablestparamstflavortxcode_generatortoperating_system((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pytCalculateVariables?s.          cCs|jdi}|jdd }|r3tan|djpJ|dj}|jdd}tjjtjj ||d}i|djd6|d6a d S( sOCalculate the generator specific info that gets fed to input (called by gyp).tgenerator_flagstandroid_ndk_versiontoptionst output_dirtouttgypfilesttopleveltqualified_out_dirN( tgettNonetTruet#generator_wants_sorted_dependenciestgenerator_outputt toplevel_dirtostpathtnormpathtjointgenerator_filelist_paths(R)R.R/R1t builddir_nameR5((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pytCalculateGeneratorInputInfoas   t?squiet_cmd_alink = AR($(TOOLSET)) $@ cmd_alink = rm -f $@ && $(AR.$(TOOLSET)) crs $@ $(filter %.o,$^) @@ -395,11 +395,11 @@ @$(call do_cmd,%s,1) s\$(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj).$(TOOLSET)/%%%s FORCE_DO_CMD @$(call do_cmd,%s,1) sQ$(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)/%%%s FORCE_DO_CMD @$(call do_cmd,%s,1) -(R.R*tsuffix_rules_srcdirtsuffix_rules_objdir1tsuffix_rules_objdir2R&RFR'(tselfR.R*RL((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyt__init__s        c stjj|t|d_jjt|_|_|d_ |d_ +(R.R*tsuffix_rules_srcdirtsuffix_rules_objdir1tsuffix_rules_objdir2R&RFR'(tselfR.R*RL((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyt__init__s        c stjj|t|d_jjt|_|_|d_ |d_ |d_ tj j j|_jdkrtj j|_n d_j|\}}g} g} g} g} g} jrj|_j|_nj|__t|jdd_d_jsqj jkrtjjj_j }nj_j}j!d j j!d j d |krj"|d | | | |nd|kr-j#|d| | | |nd|krSj$|d| |njr|jdg| }j%|| j&| n|jdg| @@ -429,11 +429,11 @@ Arguments: output_filename: sub-project Makefile name to write makefile_path: path to the top-level Makefile targets: list of "all" targets for this sub-project build_dir: build output directory, relative to the sub-project - Rusexport builddir_name ?= %ss .PHONY: allsall:s -C s $(MAKE)%s %sRlN( RRRRRRIRRR<R=R?tdirnameR(RsRt makefile_pathttargetst build_dir((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyt WriteSubMake%s  #    c Cs|j}x|D]}td|j|df}|jd|d|d} |d} + Rusexport builddir_name ?= %ss .PHONY: allsall:s -C s $(MAKE)%s %sRlN( RRRRRRIRRR<R=R?tdirnameR(RsRt makefile_pathttargetst build_dir((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyt WriteSubMake%s  #    cCs|j}x|D]}td|j|df}|jd|d|d} |d} t} x:| D]2} tjj| d} | ro| j| qoqoWt |j dt r|| 7}nt |j dt r|| @@ -523,20 +523,20 @@ "     '                 cCs|s dSx|D]\}}}}idd6dd6dd6dd 6|}id -d6d d6d d6d d 6|}|jd|||fd||jd||f|jd||jdd|kstd||jd||jdqWdS(s,Writes make rules to compile prefix headers.Ns$(CFLAGS_C_$(BUILDTYPE))R s$(CFLAGS_CC_$(BUILDTYPE))RNs4$(CFLAGS_C_$(BUILDTYPE)) $(CFLAGS_OBJC_$(BUILDTYPE))Rs6$(CFLAGS_CC_$(BUILDTYPE)) $(CFLAGS_OBJCC_$(BUILDTYPE))RtGYP_PCH_CFLAGStGYP_PCH_CXXFLAGStGYP_PCH_OBJCFLAGStGYP_PCH_OBJCXXFLAGSs %s: %s := %s sA$(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) s%s: %s FORCE_DO_CMDs @$(call do_cmd,pch_%s,1)RRls*Spaces in gch filenames not supported (%s)sall_deps += %s(RR(Rst pch_commandsR%t lang_flagtlangRt extra_flagstvar_name((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyRs2  cCs^|j st|jdkr;|jdkr;|jjS|d}d}d}|jdkr|d d kr}|d}nd }d +d6d d6d d6d d 6|}|jd|||fd||jd||f|jd||jdd|kstd||jd||jdqWdS(s,Writes make rules to compile prefix headers.Ns$(CFLAGS_C_$(BUILDTYPE))R s$(CFLAGS_CC_$(BUILDTYPE))RNs4$(CFLAGS_C_$(BUILDTYPE)) $(CFLAGS_OBJC_$(BUILDTYPE))Rs6$(CFLAGS_CC_$(BUILDTYPE)) $(CFLAGS_OBJCC_$(BUILDTYPE))RtGYP_PCH_CFLAGStGYP_PCH_CXXFLAGStGYP_PCH_OBJCFLAGStGYP_PCH_OBJCXXFLAGSs %s: %s := %s sA$(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) s%s: %s FORCE_DO_CMDs @$(call do_cmd,pch_%s,1)RRls*Spaces in gch filenames not supported (%s)sall_deps += %s(RR(Rst pch_commandsR%t lang_flagtlangRt extra_flagstvar_name((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyRs2  cCs^|j st|jdkr;|jdkr;|jjS|d}d}d}|jdkr|d d kr}|d}nd }d }n|jdkr|d d kr|d}nd }d }nE|jd krd |}n)|jdkr dd|jd|fGHn|jd|}|jd|}|jd}|rRd|}n|||S(sReturn the 'output basename' of a gyp spec. E.g., the loadable module 'foobar' in directory 'baz' will produce 'libfoobar.so' RRRzR|R{RvRiRs.as.sotnones%s.stamps,ERROR: What output file should be generated?RwRtproduct_prefixt product_nametproduct_extensionR(sstatic_librarys executablesshared_librarysloadable_module(sloadable_modulesshared_library(RRR*RwRtGetExecutablePathR6(RsRRt target_prefixt target_extt product_ext((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pytComputeOutputBasename s8   -      cCs+|jdko*|jdko*|jdkS(NRRRRzR|R{(sstatic_librarys -executablesshared_librarysloadable_module(RxR*Rw(Rs((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyt_InstallImmediately5s$cCs|j sttjjd|j|j}|jdksJ|jrSd}n|jd|}tjj||j |S(sReturn the 'output' (full output path) of a gyp spec. +      cCs+|jdko*|jdko*|jdkS(NRRRRzR|R{(sstatic_librarys +executablesshared_librarysloadable_module(RxR*Rw(Rs((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyt_InstallImmediately5s$cCs|j sttjjd|j|j}|jdksJ|jrSd}n|jd|}tjj||j |S(sReturn the 'output' (full output path) of a gyp spec. E.g., the loadable module 'foobar' in directory 'baz' will produce '$(obj)/baz/libfoobar.so' s$(obj).Rzs $(builddir)t product_dir( RRR<R=R?RxRwR8R6R7(RsRR=((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyR:s  cCs5|jsttd}tjj||jjS(sDReturn the 'output' (full output path) to a bundle output directory.R @@ -546,11 +546,11 @@ cCsg}g}d|kr|jg|dD]}t|r)t|^q)x2|dD]&}|tkrU|jt|qUqUW|j|ntjj|tjj|fS(sCompute the dependencies of a gyp spec. Returns a tuple (deps, link_deps), where each is a list of filenames that will need to be put in front of make for either building (deps) or linking (link_deps). - t dependencies(textendRRRRRtuniquer(RsRRRtdep((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyRVs  cCs&|j|jg|dddtdS(NR s Build our special outputs first.R (RRR8(RsRR((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pytWriteDependencyOnExtraOutputslscs + t dependencies(textendRRRRRtuniquer(RsRRRtdep((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyRVs  cCs&|j|jg|dddtdS(NR s Build our special outputs first.R (RRR8(RsRR((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pytWriteDependencyOnExtraOutputslsc s jd|rEjj|j||dddtni}jdkrxt|jD]} || } jdkr<j j | t dfd} t j jj} j j| ttjjtjj| jttjjtjj| j} | r| || <qnS| jd g} td |Dr| jd j| jd jn| @@ -562,11 +562,11 @@ spec, configs: input from gyp. deps, link_deps: dependency lists; see ComputeDeps() extra_outputs: any extra outputs that our target should depend on part_of_all: flag indicating this target is part of 'all' s### Rules for final target.R s4Preserve order dependency of special output on deps.R R/RR -cstj|S(N(RkR(R(Rs(s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyRstldflagscss*|] }|jdp!d|kVqdS(s.sos.so.N(RP(RQR>((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pys <genexpr>ss-Wl,-rpath=\$$ORIGIN/lib.%s/s$-Wl,-rpath-link=\$(builddir)/lib.%s/t library_dirss-L%ss +cstj|S(N(RkR(R(Rs(s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyRstldflagscss*|] }|jdp!d|kVqdS(s.sos.so.N(RP(RQR>((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pys <genexpr>ss-Wl,-rpath=\$$ORIGIN/lib.%s/s$-Wl,-rpath-link=\$(builddir)/lib.%s/t library_dirss-L%ss LDFLAGS_%ssLIBTOOLFLAGS_%st librariestLIBSs*%s: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))s%s: LIBS := $(LIBS)s4%s: GYP_LIBTOOLFLAGS := $(LIBTOOLFLAGS_$(BUILDTYPE))s!$(TARGET_POSTBUILDS_$(BUILDTYPE))s%s: TARGET_POSTBUILDS_%s := %sitcdR^s%s: builddir := $(abs_builddir)s%s: POSTBUILDS := %sRlt BUNDLE_DEPSs%s: $(BUNDLE_DEPS)R|R{s+ @$(call do_cmd,mac_package_framework,,,%s)s @$(call do_postbuilds)s @true # No-op, used by testss @touch -c %ssQPostbuilds for bundles should be done on the bundle, not the binary (target '%s')R9s.Postbuilds do not work with custom product_dirRzs%s: LD_INPUTS := %sthostRt link_hostt postbuildstlinkRs2Spaces in alink input filenames not supported (%s)topenbsdtwint alink_thintalinktsolinks3Spaces in module input filenames not supported (%s)tsolink_module_hostt solink_modulettouchsWARNING: no output forsAdd target aliastphonytalls!Add target alias to "all" target.sshared librarysstatic libraryRs%s != %sRs Copy this to the %s output path.Rs!Short alias for building this %s.sAdd %s to "all" target.N(sshared_librarysloadable_module(smacsopenbsdswin(3RR?RRR8RwRERFR*Rt GetLdflagsR!RRtInvertRelativePathR=tAddImplicitPostbuildsRnR<R>R?RR6tanyRRxRtGetLibtoolflagsR=tAdjustLibrariesR<RtGetSpecPostbuildCommandsRtGetSortedXcodePostbuildEnvRtinserttxrangeRt startswithR]RRtGetFrameworkVersionRRRRRRR(RsRRRRRRRttarget_postbuildsRRR@t gyp_to_buildttarget_postbuildRAt library_dirRBRHRtlink_dept file_descRtinstallable_deps((Rss3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyRrs< @@ -626,18 +626,18 @@ module_name: Android NDK module name, which must be unique among all module names. all_sources: A list of source files (will be filtered by Compilable). link_deps: A list of link dependencies, which must be sorted in the order from dependencies to dependents. - RzR|RNs/# Variable definitions for Android applicationssinclude $(CLEAR_VARS)sLOCAL_MODULE := siLOCAL_CFLAGS := $(CFLAGS_$(BUILDTYPE)) $(DEFS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE)) $(INCS_$(BUILDTYPE))s+LOCAL_CPPFLAGS := $(CFLAGS_CC_$(BUILDTYPE))sLOCAL_C_INCLUDES :=s/LOCAL_LDLIBS := $(LDFLAGS_$(BUILDTYPE)) $(LIBS)is.ccs.cpps.cxxisLOCAL_CPP_EXTENSION := tLOCAL_SRC_FILEScSsog}xb|D]Z}tjj|}|j|r |j|r |j|t|t| !q q W|S(N(R<R=RR^RPRR(RRRmtmodulestfilepathRS((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyt DepsToModuless  (RR*RRtLOCAL_SHARED_LIBRARIESRRtLOCAL_STATIC_LIBRARIESsinclude $(BUILD_EXECUTABLE)sinclude $(BUILD_SHARED_LIBRARY)sinclude $(BUILD_STATIC_LIBRARY)(s + RzR|RNs/# Variable definitions for Android applicationssinclude $(CLEAR_VARS)sLOCAL_MODULE := siLOCAL_CFLAGS := $(CFLAGS_$(BUILDTYPE)) $(DEFS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE)) $(INCS_$(BUILDTYPE))s+LOCAL_CPPFLAGS := $(CFLAGS_CC_$(BUILDTYPE))sLOCAL_C_INCLUDES :=s/LOCAL_LDLIBS := $(LDFLAGS_$(BUILDTYPE)) $(LIBS)is.ccs.cpps.cxxisLOCAL_CPP_EXTENSION := tLOCAL_SRC_FILEScSsog}xb|D]Z}tjj|}|j|r |j|r |j|t|t| !q q W|S(N(R<R=RR^RPRR(RRRmtmodulestfilepathRS((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyt DepsToModuless  (RR*RRtLOCAL_SHARED_LIBRARIESRRtLOCAL_STATIC_LIBRARIESsinclude $(BUILD_EXECUTABLE)sinclude $(BUILD_SHARED_LIBRARY)sinclude $(BUILD_STATIC_LIBRARY)(s executablesshared_librarysstatic_library( RwRR<R=RXRRRRRVR-R!( Rst module_nameRRtcpp_exttdefault_cpp_extRSRLRtR)R(((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyRsR            cCs|jj|ddS(Ns (RRI(Rsttext((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyRscCs1tjj|jdtjjd|jd|S(Ns$(abs_builddir)s $(abs_srcdir)s $(BUILDTYPE)(RRRRR<R=R?(RsR((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyRs  cCs,|jjdd}|jdi|d6S(NtCHROMIUM_STRIP_SAVE_FILERR(RtGetPerTargetSettingR(Rststrip_save_file((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyR[!s   cCs;x4|D],\}}|jdt|||fqWdS(Ns%s: export %s := %s(RRn(RsRRtktv((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyR,scCsNd|kr(|jdd|j}nd|krJd|j|f}n|S(s,Convert a path to its output directory form.s$(s$(obj)/s$(obj).%s/$(TARGET)/s$(obj)s$(obj).%s/$(TARGET)/%s(R[Rx(RsR=((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyR7s   cCsR|j|}d|kr>|jdd|j|f}|Sd|j||fS(s:Convert a prefix header path to its output directory form.s$(s$(obj)/s$(obj).%s/$(TARGET)/pch-%ss$(obj).%s/$(TARGET)/pch-%s/%s(RR[Rx(RsR=R,((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyR@s   cCs;d|kr|jdStjjtjj|j|S(slConvert a subdirectory-relative path into a base-relative path. - Skips over paths that contain variables.s$(t/(trstripR<R=R>R?(RsR=((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyRJs  cCs8d|krd|kr|S|i|d6|d6}|S(Ns%(INPUT_ROOT)ss%(INPUT_DIRNAME)st -INPUT_ROOTt INPUT_DIRNAME((Rsttemplatet expansionRR=((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyRUs  cCsL|jdkrA|jdks-|jdkrAd|j|jfSd|jS(sCReturns the location of the final output for an installable target.R|RRs$(builddir)/lib.%s/%ss $(builddir)/(RwR*RxR(Rs((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyR_sN(%t__name__t + Skips over paths that contain variables.s$(t/(trstripR<R=R>R?(RsR=((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyRJs  cCs8d|krd|kr|S|i|d6|d6}|S(Ns%(INPUT_ROOT)ss%(INPUT_DIRNAME)st +INPUT_ROOTt INPUT_DIRNAME((Rsttemplatet expansionRR=((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyRUs  cCsL|jdkrA|jdks-|jdkrAd|j|jfSd|jS(sCReturns the location of the final output for an installable target.R|RRs$(builddir)/lib.%s/%ss $(builddir)/(RwR*RxR(Rs((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyR_sN(%t__name__t __module__t__doc__RtRRRRRRRRRR7R8RRRRR?RR7RdRRTRRRRRR[RRRRRR(((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyRosF   d  &  | ! (         > S   cCs|d}g|dD]}tjj||j^q}tjj|d|j}|jtjstjj d|}n|j di|d6dj t t |d6tjj |d gtj||d 6d S( s,Write the target to regenerate the Makefile.R0tbuild_files_argt @@ -645,10 +645,10 @@ cmd_regen_makefile = cd $(srcdir); %(cmd)s %(makefile_name)s: %(deps)s $(call do_cmd,regen_makefile) t makefile_nameRlRs-fmaketcmdN(RRt RelativePathR;tFixIfRelativePathR^R<tsepR=R?RIRRkRtRegenerateFlags(R)t root_makefileRt build_filesR0RStbuild_files_argsR((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pytWriteAutoRegenerationRuleks -,  cCs|d}xr|D]j}dg}|jrN|jdkrN|d|jf7}n|jd|d||fGHtj|qWdS(NR0tmakeRs-Cs +,  cCs|d}xr|D]j}dg}|jrN|jdkrN|d|jf7}n|jd|d||fGHtj|qWdS(NR0tmakeRs-Cs BUILDTYPE=sBuilding [%s]: %s(R;Rt subprocesst check_call(tdatatconfigurationsR)R0Rt arguments((s3ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyt PerformBuilds   c1 s0 |dtjj|}|jdi}|jdd}|jdd}|jdd}fd} d} \ No newline at end of file