Skip to content

Commit 67cee0b

Browse files
authored
Remove use of logging from ports builds (#18624)
This was just adding unnessary boilerplate to each individual port. We already print several lines of information when building a given port, and its all don't in generic code. e.g.: ``` ports:INFO: retrieving port: bullet from https://github.com/emscripten-ports/bullet/archive/version_1.zip ports:INFO: unpacking port: bullet cache:INFO: generating system library: sysroot/lib/wasm32-emscripten/libbullet.a... (this will be cached in "/usr/local/google/home/sbc/dev/wasm/emscripten/cache/sysroot/lib/wasm32-emscripten/libbullet.a" for subsequent builds) ``` For requests to make these things quieter in general see #18607 and 18622.
1 parent a22b02f commit 67cee0b

18 files changed

+3
-44
lines changed

test/test_browser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3321,6 +3321,7 @@ def test_cocos2d_hello(self):
33213321
self.btest('cocos2d_hello.cpp', reference='cocos2d_hello.png', reference_slack=1,
33223322
args=['-sUSE_COCOS2D=3', '-sERROR_ON_UNDEFINED_SYMBOLS=0',
33233323
'-Wno-js-compiler',
3324+
'-Wno-experimental',
33243325
'--preload-file', preload_file, '--use-preload-plugins',
33253326
'-Wno-inconsistent-missing-override',
33263327
'-Wno-deprecated-declarations'])

tools/ports/boost_headers.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# University of Illinois/NCSA Open Source License. Both these licenses can be
44
# found in the LICENSE file.
55

6-
import logging
76
import os
87

98
TAG = '1.75.0'
@@ -20,8 +19,6 @@ def get(ports, settings, shared):
2019
sha512hash=HASH)
2120

2221
def create(final):
23-
logging.info('building port: boost_headers')
24-
2522
# includes
2623
source_path = os.path.join(ports.get_dir(), 'boost_headers')
2724
source_path_include = os.path.join(source_path, 'boost')

tools/ports/bullet.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# University of Illinois/NCSA Open Source License. Both these licenses can be
44
# found in the LICENSE file.
55

6-
import logging
76
import os
87
import shutil
98

@@ -19,8 +18,6 @@ def get(ports, settings, shared):
1918
ports.fetch_project('bullet', f'https://github.com/emscripten-ports/bullet/archive/{TAG}.zip', sha512hash=HASH)
2019

2120
def create(final):
22-
logging.info('building port: bullet')
23-
2421
source_path = os.path.join(ports.get_dir(), 'bullet', 'Bullet-' + TAG)
2522
src_path = os.path.join(source_path, 'bullet', 'src')
2623

tools/ports/cocos2d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# found in the LICENSE file.
55

66
import os
7-
import logging
87
import re
8+
from tools import diagnostics
99

1010
TAG = 'version_3_3'
1111
HASH = 'd7b22660036c684f09754fcbbc7562984f02aa955eef2b76555270c63a717e6672c4fe695afb16280822e8b7c75d4b99ae21975a01a4ed51cad957f7783722cd'
@@ -21,7 +21,7 @@ def get(ports, settings, shared):
2121
ports.fetch_project('cocos2d', f'https://github.com/emscripten-ports/Cocos2d/archive/{TAG}.zip', sha512hash=HASH)
2222

2323
def create(final):
24-
logging.warn('cocos2d: library is experimental, do not expect that it will work out of the box')
24+
diagnostics.warning('experimental', 'cocos2d: library is experimental, do not expect that it will work out of the box')
2525

2626
cocos2d_src = os.path.join(ports.get_dir(), 'cocos2d')
2727
cocos2d_root = os.path.join(cocos2d_src, 'Cocos2d-' + TAG)

tools/ports/giflib.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# found in the LICENSE file.
55

66
import os
7-
import logging
87

98
VERSION = '5.2.1'
109
HASH = '4550e53c21cb1191a4581e363fc9d0610da53f7898ca8320f0d3ef6711e76bdda2609c2df15dc94c45e28bff8de441f1227ec2da7ea827cb3c0405af4faa4736'
@@ -18,7 +17,6 @@ def get(ports, settings, shared):
1817
ports.fetch_project('giflib', f'https://storage.googleapis.com/webassembly/emscripten-ports/giflib-{VERSION}.tar.gz', sha512hash=HASH)
1918

2019
def create(final):
21-
logging.info('building port: giflib')
2220
source_path = os.path.join(ports.get_dir(), 'giflib', f'giflib-{VERSION}')
2321
ports.install_headers(source_path)
2422
exclude_files = [

tools/ports/harfbuzz.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# found in the LICENSE file.
55

66
import os
7-
import logging
87

98
VERSION = '3.2.0'
109
HASH = 'c9d88068d8017046842f444f02f31dbae109026ede943aaf265db5508de8b4b2be84203950f274a237f515bf7cbd361629d2032c6e8ee8f50354b430bba3a8ca'
@@ -83,8 +82,6 @@ def get(ports, settings, shared):
8382
ports.fetch_project('harfbuzz', f'https://github.com/harfbuzz/harfbuzz/releases/download/{VERSION}/harfbuzz-{VERSION}.tar.xz', sha512hash=HASH)
8483

8584
def create(final):
86-
logging.info('building port: harfbuzz')
87-
8885
source_path = os.path.join(ports.get_dir(), 'harfbuzz', 'harfbuzz-' + VERSION)
8986
freetype_include = ports.get_include_dir('freetype2')
9087
ports.install_headers(os.path.join(source_path, 'src'), target='harfbuzz')

tools/ports/icu.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# University of Illinois/NCSA Open Source License. Both these licenses can be
44
# found in the LICENSE file.
55

6-
import logging
76
import os
87

98
TAG = 'release-68-2'
@@ -35,8 +34,6 @@ def prepare_build():
3534
icu_source_path = os.path.join(source_path, 'source')
3635

3736
def build_lib(lib_output, lib_src, other_includes, build_flags):
38-
logging.debug('building port: icu- ' + lib_output)
39-
4037
additional_build_flags = [
4138
# TODO: investigate why this is needed and remove
4239
'-Wno-macro-redefined',

tools/ports/libjpeg.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# found in the LICENSE file.
55

66
import os
7-
import logging
87

98
VERSION = '9c'
109
HASH = 'b2affe9a1688bd49fc033f4682c4a242d4ee612f1affaef532f5adcb4602efc4433c4a52a4b3d69e7440ff1f6413b1b041b419bc90efd6d697999961a9a6afb7'
@@ -21,7 +20,6 @@ def get(ports, settings, shared):
2120
ports.fetch_project('libjpeg', f'https://storage.googleapis.com/webassembly/emscripten-ports/jpegsrc.v{VERSION}.tar.gz', sha512hash=HASH)
2221

2322
def create(final):
24-
logging.info('building port: libjpeg')
2523
source_path = os.path.join(ports.get_dir(), 'libjpeg', f'jpeg-{VERSION}')
2624
ports.write_file(os.path.join(source_path, 'jconfig.h'), jconfig_h)
2725
ports.install_headers(source_path)

tools/ports/libmodplug.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# found in the LICENSE file.
55

66
import os
7-
import logging
87

98
TAG = '11022021'
109
HASH = 'f770031ad6c2152cbed8c8eab8edf2be1d27f9e74bc255a9930c17019944ee5fdda5308ea992c66a78af9fe1d8dca090f6c956910ce323f8728247c10e44036b'
@@ -18,8 +17,6 @@ def get(ports, settings, shared):
1817
ports.fetch_project('libmodplug', f'https://github.com/jancc/libmodplug/archive/v{TAG}.zip', sha512hash=HASH)
1918

2019
def create(final):
21-
logging.info('building port: libmodplug')
22-
2320
source_path = os.path.join(ports.get_dir(), 'libmodplug', 'libmodplug-' + TAG)
2421
src_dir = os.path.join(source_path, 'src')
2522
libmodplug_path = os.path.join(src_dir, 'libmodplug')

tools/ports/libpng.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# found in the LICENSE file.
55

66
import os
7-
import logging
87

98
TAG = '1.6.37'
109
HASH = '2ce2b855af307ca92a6e053f521f5d262c36eb836b4810cb53c809aa3ea2dcc08f834aee0ffd66137768a54397e28e92804534a74abb6fc9f6f3127f14c9c338'
@@ -35,8 +34,6 @@ def get(ports, settings, shared):
3534
ports.fetch_project('libpng', f'https://storage.googleapis.com/webassembly/emscripten-ports/libpng-{TAG}.tar.gz', sha512hash=HASH)
3635

3736
def create(final):
38-
logging.info('building port: libpng')
39-
4037
source_path = os.path.join(ports.get_dir(), 'libpng', 'libpng-' + TAG)
4138
ports.write_file(os.path.join(source_path, 'pnglibconf.h'), pnglibconf_h)
4239
ports.install_headers(source_path)

0 commit comments

Comments
 (0)