MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / create

Function create

tools/ports/sdl3.py:34–124  ·  view source on GitHub ↗
(final)

Source from the content-addressed store, hash-verified

32 ports.fetch_project('sdl3', f'https://github.com/libsdl-org/SDL/archive/{TAG}.zip', sha512hash=HASH)
33
34 def create(final):
35 root_dir = ports.get_dir('sdl3', SUBDIR)
36
37 # In addition copy our pre-generated SDL_build_config.h file.
38 sdl_build_config_h = os.path.join(os.path.dirname(__file__), 'sdl3/SDL_build_config.h')
39 shutil.copyfile(sdl_build_config_h, os.path.join(root_dir, 'include/SDL3/SDL_build_config.h'))
40
41 # copy includes to a location so they can be used as 'SDL3/'
42 source_include_path = os.path.join(root_dir, 'include', 'SDL3')
43 ports.install_headers(source_include_path, target='SDL3')
44 ports.make_pkg_config('sdl3', VERSION, '-sUSE_SDL=3')
45
46 # copy sdl3-config.cmake
47 cmake_file = os.path.join(os.path.dirname(__file__), 'sdl3/sdl3-config.cmake')
48 ports.install_file(cmake_file, 'lib/cmake/SDL3/sdl3-config.cmake')
49
50 glob_patterns = [
51 # Generic sources (from SDL3's CMakeLists.txt)
52 '*.c',
53 'atomic/*.c',
54 'audio/*.c',
55 'camera/*.c',
56 'core/unix/*.c',
57 'cpuinfo/*.c',
58 'dynapi/*.c',
59 'events/*.c',
60 'io/*.c',
61 'io/generic/*.c',
62 'filesystem/*.c',
63 'gpu/*.c',
64 'joystick/*.c',
65 'haptic/*.c',
66 'hidapi/*.c',
67 'locale/*.c',
68 'main/*.c',
69 'misc/*.c',
70 'power/*.c',
71 'render/*.c',
72 'render/*/*.c',
73 'sensor/*.c',
74 'stdlib/*.c',
75 'storage/*.c',
76 'thread/*.c',
77 'time/*.c',
78 'timer/*.c',
79 'video/*.c',
80 'video/yuv2rgb/*.c',
81 'tray/*.c',
82 # Platform specific sources
83 'storage/generic/*.c',
84 'tray/unix/*.c',
85 'time/unix/*.c',
86 'timer/unix/*.c',
87 'main/emscripten/*.c',
88 'filesystem/posix/*.c',
89 'filesystem/emscripten/*.c',
90 'locale/emscripten/*.c',
91 'camera/emscripten/*.c',

Callers

nothing calls this directly

Calls 8

install_headersMethod · 0.80
make_pkg_configMethod · 0.80
install_fileMethod · 0.80
appendMethod · 0.80
get_include_dirMethod · 0.80
build_portMethod · 0.80
get_dirMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected