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

Method get_cflags

tools/system_libs.py:1958–1969  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1956 return name
1957
1958 def get_cflags(self):
1959 cflags = super().get_cflags()
1960 if self.is_legacy:
1961 cflags += ['-DLEGACY_GL_EMULATION=1']
1962 cflags += [f'-DMAX_WEBGL_VERSION={2 if self.is_webgl2 else 1}']
1963 if self.is_ofb:
1964 cflags += ['-D__EMSCRIPTEN_OFFSCREEN_FRAMEBUFFER__']
1965 if self.is_full_es3:
1966 cflags += ['-D__EMSCRIPTEN_FULL_ES3__']
1967 if self.is_enable_get_proc_address:
1968 cflags += ['-DGL_ENABLE_GET_PROC_ADDRESS=1']
1969 return cflags
1970
1971 @classmethod
1972 def vary_on(cls):

Callers 12

get_cflagsMethod · 0.45
get_cflagsMethod · 0.45
get_cflagsMethod · 0.45
get_cflagsMethod · 0.45
get_cflagsMethod · 0.45
get_cflagsMethod · 0.45
get_cflagsMethod · 0.45
get_cflagsMethod · 0.45
get_cflagsMethod · 0.45
get_cflagsMethod · 0.45
get_cflagsMethod · 0.45
get_cflagsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected