summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2018-06-01 17:08:13 -0400
committerBradley Sepos <[email protected]>2018-06-17 00:23:34 -0400
commitca57c61aab7e10aa809ec84d3076a07c63bcb410 (patch)
tree3ca055d3582765b071517530feaad40e675c6890 /make
parente910330e6a022f8267b61be940fc03a01fee2109 (diff)
contrib: gtk: libhb: make: scripts: Remove yasm contrib.
Diffstat (limited to 'make')
-rw-r--r--make/configure.py29
-rw-r--r--make/include/main.defs5
2 files changed, 1 insertions, 33 deletions
diff --git a/make/configure.py b/make/configure.py
index b2fa916be..2c92e1028 100644
--- a/make/configure.py
+++ b/make/configure.py
@@ -1344,8 +1344,6 @@ def createCLI():
grp.add_option( '--minver', default=None, action='store', metavar='VER',
help=h )
- h = IfHost( 'Build and use local yasm', '*-*-*', none=optparse.SUPPRESS_HELP ).value
- grp.add_option( '--enable-local-yasm', default=False, action='store_true', help=h )
h = IfHost( 'Build and use local autotools', '*-*-*', none=optparse.SUPPRESS_HELP ).value
grp.add_option( '--enable-local-autotools', default=False, action='store_true', help=h )
h = IfHost( 'Build and use local cmake', '*-*-*', none=optparse.SUPPRESS_HELP ).value
@@ -1532,7 +1530,6 @@ try:
strip = ToolProbe( 'STRIP.exe', 'strip' )
tar = ToolProbe( 'TAR.exe', 'gtar', 'tar' )
nasm = ToolProbe( 'NASM.exe', 'nasm', abort=False, minversion=[2,13,0] )
- yasm = ToolProbe( 'YASM.exe', 'yasm', abort=False, minversion=[1,2,0] )
autoconf = ToolProbe( 'AUTOCONF.exe', 'autoconf', abort=False )
automake = ToolProbe( 'AUTOMAKE.exe', 'automake', abort=False )
cmake = ToolProbe( 'CMAKE.exe', 'cmake', abort=False )
@@ -1599,16 +1596,6 @@ try:
elif Tools.nasm.version.inadequate():
raise AbortError( 'error: minimum required nasm version is %s and %s is %s\n' % ('.'.join([str(i) for i in Tools.nasm.version.minversion]),Tools.nasm.pathname,Tools.nasm.version.svers) )
- ## enable local yasm when yasm probe fails or version is too old
- ## x264 requires 1.2.0+
- if not options.enable_local_yasm:
- if Tools.yasm.fail:
- stdout.write( 'note: enabling local yasm: missing system yasm\n' )
- options.enable_local_yasm = True
- elif Tools.yasm.version.inadequate():
- stdout.write( 'note: enabling local yasm: minimum required version is %s and %s is %s\n' % ('.'.join([str(i) for i in Tools.yasm.version.minversion]),Tools.yasm.pathname,Tools.yasm.version.svers) )
- options.enable_local_yasm = True
-
## enable local autotools when any of { autoconf, automake, libtool } probe fails
if not options.enable_local_autotools and (Tools.autoconf.fail or Tools.automake.fail or Tools.libtool.fail):
stdout.write( 'note: enabling local autotools\n' )
@@ -1868,7 +1855,6 @@ int main()
doc.add( 'PREFIX/', cfg.prefix_final + os.sep )
doc.addBlank()
- doc.add( 'FEATURE.local_yasm', int( options.enable_local_yasm ))
doc.add( 'FEATURE.local_autotools', int( options.enable_local_autotools ))
doc.add( 'FEATURE.local_cmake', int( options.enable_local_cmake ))
doc.add( 'FEATURE.local_pkgconfig', int( options.enable_local_pkgconfig ))
@@ -1957,27 +1943,14 @@ int main()
elif build.match( 'amd64-*' ):
doc.add( 'LIBHB.GCC.D', 'ARCH_X86_64', append=True )
- if options.enable_asm and ( not Tools.yasm.fail or options.enable_local_yasm ):
+ if options.enable_asm and ( not Tools.nasm.fail ):
asm = ''
if build.match( 'i?86-*' ):
asm = 'x86'
doc.add( 'LIBHB.GCC.D', 'HAVE_MMX', append=True )
- doc.add( 'LIBHB.YASM.D', 'ARCH_X86', append=True )
- if build.match( '*-*-darwin*' ):
- doc.add( 'LIBHB.YASM.f', 'macho32' )
- else:
- doc.add( 'LIBHB.YASM.f', 'elf32' )
- doc.add( 'LIBHB.YASM.m', 'x86' )
elif build.match( 'x86_64-*' ) or build.match( 'amd64-*' ):
asm = 'x86'
doc.add( 'LIBHB.GCC.D', 'HAVE_MMX ARCH_X86_64', append=True )
- if build.match( '*-*-darwin*' ):
- doc.add( 'LIBHB.YASM.D', 'ARCH_X86_64 PIC', append=True )
- doc.add( 'LIBHB.YASM.f', 'macho64' )
- else:
- doc.add( 'LIBHB.YASM.D', 'ARCH_X86_64', append=True )
- doc.add( 'LIBHB.YASM.f', 'elf64' )
- doc.add( 'LIBHB.YASM.m', 'amd64' )
doc.update( 'FEATURE.asm', asm )
## add exports to make
diff --git a/make/include/main.defs b/make/include/main.defs
index 2cfa446dd..7db389b52 100644
--- a/make/include/main.defs
+++ b/make/include/main.defs
@@ -67,7 +67,6 @@ ifeq (1,$(FEATURE.flatpak))
MODULES += contrib/fribidi
MODULES += contrib/freetype
MODULES += contrib/libass
- MODULES += contrib/yasm
endif
ifeq (1,$(FEATURE.fdk_aac))
@@ -164,10 +163,6 @@ ifeq (1-gnu,$(FEATURE.gtk)-$(BUILD.system))
MODULES += gtk
endif
-ifeq (1,$(FEATURE.local_yasm))
- MODULES += contrib/yasm
-endif
-
###############################################################################
MODULES += pkg