Searched full:os (Results 1 – 23 of 23) sorted by relevance
/nanopb-3.4.0/generator/ |
D | protoc | 7 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 …]
|
D | platformio_generator.py | 1 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 …]
|
D | nanopb_generator.py | 17 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/ |
D | nanopb.py | 35 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__.py | 4 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.py | 3 import os.path 33 nanopb_include = os.path.dirname(os.path.abspath(__file__))
|
/nanopb-3.4.0/.github/workflows/ |
D | bazel.yml | 15 runs-on: ${{ matrix.os }} 18 os: [ubuntu-20.04, macos-10.15] 27 key: ${{ runner.os }}-bazel
|
D | compiler_tests.yml | 33 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"
|
D | binary_packages.yml | 103 name: Build binary on Mac OS X Big Sur 11
|
/nanopb-3.4.0/tools/ |
D | make_mac_package.sh | 4 # for Mac OS X users. 30 cp -pr $(python3 -c 'import grpc_tools, os.path; print(os.path.dirname(grpc_tools.__file__))')/_pro…
|
D | make_linux_package.sh | 30 cp -pr $(python3 -c 'import grpc_tools, os.path; print(os.path.dirname(grpc_tools.__file__))')/_pro…
|
D | make_windows_package.sh | 29 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/ |
D | stm32.py | 12 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/ |
D | avr.py | 12 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/ |
D | SConscript | 3 import os 26 objects = [ e.Object('{}_{}'.format(os.path.basename(s), std), s) for s in sources ]
|
/nanopb-3.4.0/ |
D | conanfile.py | 2 from os import path
|
D | README.md | 44 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
|
D | CMakeLists.txt | 45 …"import os.path, sys, sysconfig; print(os.path.relpath(sysconfig.get_path('purelib'), start=sys.pr…
|
D | CHANGELOG.txt | 377 Switch to .tar.gz format for Mac OS X packages. (issue 154)
|
/nanopb-3.4.0/tests/regression/issue_494/ |
D | SConscript | 5 import os, sys
|
/nanopb-3.4.0/tests/ |
D | SConstruct | 24 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/ |
D | conanfile.py | 7 settings = "os", "compiler", "build_type", "arch"
|
/nanopb-3.4.0/tests/generator_relative_paths/ |
D | SConscript | 22 import os, sys
|