Home
last modified time | relevance | path

Searched full:os (Results 1 – 23 of 23) sorted by relevance

/nanopb-3.4.0/generator/
Dprotoc7 import os
8 import os.path
20 mypath = os.path.dirname(sys.executable) # For pyInstaller
22 mypath = os.path.dirname(__file__)
25 env_paths = os.environ["PATH"].split(os.pathsep)
28 os.environ["PATH"] = os.pathsep.join(env_paths)
32 if os.path.isfile(os.path.join(mypath, "protoc-gen-nanopb.exe")):
33 protoc_gen_nanopb = os.path.join(mypath, "protoc-gen-nanopb.exe")
34 elif os.name == 'nt':
35 protoc_gen_nanopb = os.path.join(mypath, "protoc-gen-nanopb.bat")
[all …]
Dplatformio_generator.py1 import os
33 nanopb_root = os.path.join(os.getcwd(), '..')
38 generated_src_dir = os.path.join(build_dir, 'nanopb', 'generated-src')
39 generated_build_dir = os.path.join(build_dir, 'nanopb', 'generated-build')
40 md5_dir = os.path.join(build_dir, 'nanopb', 'md5')
59 nanopb_generator = os.path.join(nanopb_root, 'generator', 'nanopb_generator.py')
67 os.makedirs(generated_src_dir)
72 os.makedirs(md5_dir)
79 proto_file_abs = os.path.join(project_dir, proto_file)
80 proto_dir = os.path.dirname(proto_file_abs)
[all …]
Dnanopb_generator.py17 import os
23 if not os.getenv("PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"):
24 os.putenv("PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION", "python")
25 os.environ["PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"] = "python"
83 import os.path
1903 noext = os.path.splitext(incfile)[0]
2242 import os.path
2351 optfilename = options.options_file % os.path.splitext(filename)[0]
2359 if os.path.isfile(os.path.join(p, optfilename)):
2360 optfilename = os.path.join(p, optfilename)
[all …]
/nanopb-3.4.0/tests/site_scons/site_tools/
Dnanopb.py35 import os.path
54 p = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..'))
55 if os.path.isdir(p) and os.path.isfile(os.path.join(p, 'pb.h')):
79 …generator_cmd = os.path.join(env['NANOPB'], 'generator-bin', 'nanopb_generator' + env['PROGSUFFIX'…
80 if os.path.exists(generator_cmd):
85 …return env['PYTHON'] + " " + env['ESCAPE'](os.path.join(env['NANOPB'], 'generator', 'nanopb_genera…
94 p1 = os.path.join(n, 'generator-bin', 'protoc' + env['PROGSUFFIX'])
95 if os.path.exists(p1):
99 p = os.path.join(n, 'generator', 'protoc')
100 if os.path.exists(p):
[all …]
/nanopb-3.4.0/generator/proto/
D__init__.py4 import os
5 import os.path
72 tmpdir = os.getenv("NANOPB_PB2_TEMP_DIR")
74 dirname = os.path.dirname(__file__)
75 protosrc = os.path.join(dirname, "nanopb.proto")
76 protodst = os.path.join(dirname, "nanopb_pb2.py")
79 if tmpdir is not None and not os.path.isdir(tmpdir):
82 if os.path.isfile(protosrc):
83 src_date = os.path.getmtime(protosrc)
84 if not os.path.isfile(protodst) or os.path.getmtime(protodst) < src_date:
D_utils.py3 import os.path
33 nanopb_include = os.path.dirname(os.path.abspath(__file__))
/nanopb-3.4.0/.github/workflows/
Dbazel.yml15 runs-on: ${{ matrix.os }}
18 os: [ubuntu-20.04, macos-10.15]
27 key: ${{ runner.os }}-bazel
Dcompiler_tests.yml33 scons CC=gcc CXX=g++ CCFLAGS="-Os -flto"
43 scons CC=gcc CXX=g++ CCFLAGS="-Os -flto -m32" LINKFLAGS="-m32"
53 scons CC=clang CXX=clang++ CCFLAGS="-Os -DPB_FIELD_32BIT=1"
61 scons CC=clang CXX=clang++ CCFLAGS="-Os -DPB_FIELD_32BIT=1 -m32" LINKFLAGS="-m32"
Dbinary_packages.yml103 name: Build binary on Mac OS X Big Sur 11
/nanopb-3.4.0/tools/
Dmake_mac_package.sh4 # for Mac OS X users.
30 cp -pr $(python3 -c 'import grpc_tools, os.path; print(os.path.dirname(grpc_tools.__file__))')/_pro…
Dmake_linux_package.sh30 cp -pr $(python3 -c 'import grpc_tools, os.path; print(os.path.dirname(grpc_tools.__file__))')/_pro…
Dmake_windows_package.sh29 cp -pr $(python3 -c 'import grpc_tools, os.path; print(os.path.dirname(grpc_tools.__file__))')/_pro…
/nanopb-3.4.0/tests/site_scons/platforms/stm32/
Dstm32.py12 env.Append(CFLAGS = "-mcpu=cortex-m3 -mthumb -Os")
13 env.Append(CXXFLAGS = "-mcpu=cortex-m3 -mthumb -Os")
/nanopb-3.4.0/tests/site_scons/platforms/avr/
Davr.py12 env.Append(CFLAGS = "-mmcu=atmega1284 -Dmain=app_main -Os -g -Wall ")
13 env.Append(CXXFLAGS = "-mmcu=atmega1284 -Dmain=app_main -Os -Wno-type-limits")
/nanopb-3.4.0/tests/cxx_callback_datatype/
DSConscript3 import os
26 objects = [ e.Object('{}_{}'.format(os.path.basename(s), std), s) for s in sources ]
/nanopb-3.4.0/
Dconanfile.py2 from os import path
DREADME.md44 The binary packages for Windows, Linux and Mac OS X should contain all necessary
68 Note: Mac OS X by default aliases 'clang' as 'gcc', while not actually
70 Mac OS X, use: `scons CC=clang CXX=clang`. Same way can be used to run
DCMakeLists.txt45 …"import os.path, sys, sysconfig; print(os.path.relpath(sysconfig.get_path('purelib'), start=sys.pr…
DCHANGELOG.txt377 Switch to .tar.gz format for Mac OS X packages. (issue 154)
/nanopb-3.4.0/tests/regression/issue_494/
DSConscript5 import os, sys
/nanopb-3.4.0/tests/
DSConstruct24 import os
26 env = Environment(ENV = os.environ)
61 # On Mac OS X, gcc is usually alias for clang.
230 import os.path
243 …SConscript(subdir, exports = 'env', variant_dir = env['VARIANT_DIR'] + '/' + os.path.dirname(str(s…
/nanopb-3.4.0/examples/conan_dependency/
Dconanfile.py7 settings = "os", "compiler", "build_type", "arch"
/nanopb-3.4.0/tests/generator_relative_paths/
DSConscript22 import os, sys