Home
last modified time | relevance | path

Searched full:setup (Results 1 – 25 of 7142) sorted by relevance

12345678910>>...286

/third_party/python/Doc/distutils/
Dexamples.rst27 ``py_modules`` option in the setup script.
29 In the simplest case, you'll have two files to worry about: a setup script and
33 setup.py
37 directory.) A minimal setup script to describe this situation would be::
39 from distutils.core import setup
40 setup(name='foo',
53 setup might look like this::
56 setup.py
60 and the setup script might be ::
62 from distutils.core import setup
[all …]
Dintroduction.rst25 * write a setup script (:file:`setup.py` by convention)
27 * (optional) write a setup configuration file
42 their platform, without having to run a single setup script or compile a line of
51 The setup script is usually quite simple, although since it's written in Python,
53 careful about putting arbitrarily expensive operations in your setup script.
54 Unlike, say, Autoconf-style configure scripts, the setup script may be run
59 file :file:`foo.py`, then your setup script can be as simple as this::
61 from distutils.core import setup
62 setup(name='foo',
70 arguments to the :func:`setup` function
[all …]
/third_party/gn/src/gn/
Dscope_unittest.cc37 TestWithScope setup; in TEST() local
39 setup.scope()->AddBuildDependencyFile(source_file); in TEST()
41 Scope new_scope(setup.scope()); in TEST()
47 TestWithScope setup; in TEST() local
59 setup.scope()->SetValue("v", old_value, &assignment); in TEST()
61 setup.scope()->SetValue(private_var_name, old_value, &assignment); in TEST()
65 scoped_refptr<Template> templ(new Template(setup.scope(), &templ_definition)); in TEST()
66 setup.scope()->AddTemplate("templ", templ.get()); in TEST()
68 new Template(setup.scope(), &templ_definition)); in TEST()
69 setup.scope()->AddTemplate("_templ", private_templ.get()); in TEST()
[all …]
Druntime_deps_unittest.cc17 void InitTargetWithType(TestWithScope& setup, in InitTargetWithType() argument
22 target->SetToolchain(setup.toolchain()); in InitTargetWithType()
48 TestWithScope setup; in TEST_F() local
56 Target stat(setup.settings(), Label(SourceDir("//"), "stat")); in TEST_F()
57 InitTargetWithType(setup, &stat, Target::STATIC_LIBRARY); in TEST_F()
61 Target shared(setup.settings(), Label(SourceDir("//"), "shared")); in TEST_F()
62 InitTargetWithType(setup, &shared, Target::SHARED_LIBRARY); in TEST_F()
66 Target loadable(setup.settings(), Label(SourceDir("//"), "loadable")); in TEST_F()
67 InitTargetWithType(setup, &loadable, Target::LOADABLE_MODULE); in TEST_F()
71 Target set(setup.settings(), Label(SourceDir("//"), "set")); in TEST_F()
[all …]
Dninja_build_writer_unittest.cc39 TestWithScope setup; in TEST_F() local
42 // Setup sets the default root dir to ".". in TEST_F()
54 setup.build_settings()->SetRootPath(root_realpath); in TEST_F()
55 cmd_out = GetSelfInvocationCommandLine(setup.build_settings()); in TEST_F()
61 setup.build_settings()->SetRootPath(root_realpath); in TEST_F()
62 setup.build_settings()->set_dotfile_name(gn_realpath); in TEST_F()
63 cmd_out = GetSelfInvocationCommandLine(setup.build_settings()); in TEST_F()
70 TestWithScope setup; in TEST_F() local
73 Target target_foo(setup.settings(), Label(SourceDir("//foo/"), "bar")); in TEST_F()
78 target_foo.SetToolchain(setup.toolchain()); in TEST_F()
[all …]
Dfunctions_target_rust_unittest.cc16 TestWithScope setup; in TEST_F() local
20 setup.scope()->set_item_collector(&item_collector); in TEST_F()
21 setup.scope()->set_source_dir(SourceDir("/")); in TEST_F()
30 exe_input.parsed()->Execute(setup.scope(), &err); in TEST_F()
41 lib_input.parsed()->Execute(setup.scope(), &err); in TEST_F()
50 TestWithScope setup; in TEST_F() local
54 setup.scope()->set_item_collector(&item_collector); in TEST_F()
55 setup.scope()->set_source_dir(SourceDir("/")); in TEST_F()
64 normal_input.parsed()->Execute(setup.scope(), &err); in TEST_F()
78 normal_shlib_input.parsed()->Execute(setup.scope(), &err); in TEST_F()
[all …]
Dtarget_unittest.cc42 TestWithScope setup; in TEST_F() local
49 TestTarget z(setup, "//foo:z", Target::STATIC_LIBRARY); in TEST_F()
64 TestTarget shared(setup, "//foo:shared", Target::SHARED_LIBRARY); in TEST_F()
78 TestTarget exec(setup, "//foo:exec", Target::EXECUTABLE); in TEST_F()
88 TestWithScope setup; in TEST_F() local
95 TestTarget z(setup, "//foo:z", Target::STATIC_LIBRARY); in TEST_F()
110 TestTarget shared(setup, "//foo:shared", Target::SHARED_LIBRARY); in TEST_F()
124 TestTarget exec(setup, "//foo:exec", Target::EXECUTABLE); in TEST_F()
133 TestWithScope setup; in TEST_F() local
137 TestTarget a(setup, "//foo:a", Target::EXECUTABLE); in TEST_F()
[all …]
Dfunction_forward_variables_from_unittest.cc26 TestWithScope setup; in TEST_F() local
32 input.parsed()->Execute(setup.scope(), &err); in TEST_F()
35 EXPECT_EQ("target, 1, 2\n", setup.print_output()); in TEST_F()
36 setup.print_output().clear(); in TEST_F()
40 TestWithScope setup; in TEST_F() local
49 clobber.parsed()->Execute(setup.scope(), &err); in TEST_F()
56 TestWithScope setup; in TEST_F() local
69 input.parsed()->Execute(setup.scope(), &err); in TEST_F()
72 EXPECT_EQ("1 2 3\n", setup.print_output()); in TEST_F()
73 setup.print_output().clear(); in TEST_F()
[all …]
Dfunction_foreach_unittest.cc9 TestWithScope setup; in TEST() local
21 input.parsed()->Execute(setup.scope(), &err); in TEST()
24 EXPECT_EQ("5 1\n6 2\n7 3\n8 6\n", setup.print_output()); in TEST()
28 TestWithScope setup; in TEST() local
36 input_good.parsed()->Execute(setup.scope(), &err); in TEST()
39 EXPECT_EQ("1\n2\n3\n", setup.print_output()); in TEST()
40 setup.print_output().clear(); in TEST()
51 input_bad.parsed()->Execute(setup.scope(), &err); in TEST()
57 TestWithScope setup; in TEST() local
66 input_good.parsed()->Execute(setup.scope(), &err); in TEST()
[all …]
Doperators_unittest.cc102 TestWithScope setup; in TEST() local
106 setup.scope()->SetValue(sources, Value(nullptr, Value::LIST), nullptr); in TEST()
115 setup.scope()->set_sources_assignment_filter(std::move(pattern_list)); in TEST()
119 node.Execute(setup.scope(), &err); in TEST()
125 node.Execute(setup.scope(), &err); in TEST()
131 node.Execute(setup.scope(), &err); in TEST()
136 node.Execute(setup.scope(), &err); in TEST()
140 const Value* value = setup.scope()->GetValue(sources); in TEST()
153 TestWithScope setup; in TEST() local
157 setup.scope()->SetValue(foo, Value(nullptr, Value::LIST), nullptr); in TEST()
[all …]
Dninja_create_bundle_target_writer_unittest.cc27 std::unique_ptr<Target> NewAction(const TestWithScope& setup) { in NewAction() argument
29 auto action = std::make_unique<Target>(setup.settings(), in NewAction()
38 action->SetToolchain(setup.toolchain()); in NewAction()
47 TestWithScope setup; in TEST() local
49 std::unique_ptr<Target> action = NewAction(setup); in TEST()
52 Target bundle_data(setup.settings(), Label(SourceDir("//foo/"), "data")); in TEST()
58 bundle_data.SetToolchain(setup.toolchain()); in TEST()
63 setup.settings(), in TEST()
64 Label(SourceDir("//baz/"), "bar", setup.toolchain()->label().dir(), in TEST()
65 setup.toolchain()->label().name())); in TEST()
[all …]
Dninja_action_target_writer_unittest.cc18 TestWithScope setup; in TEST() local
20 Target target(setup.settings(), Label(SourceDir("//foo/"), "bar")); in TEST()
26 target.SetToolchain(setup.toolchain()); in TEST()
42 TestWithScope setup; in TEST() local
44 Target target(setup.settings(), Label(SourceDir("//foo/"), "bar")); in TEST()
53 target.SetToolchain(setup.toolchain()); in TEST()
56 setup.build_settings()->set_python_path( in TEST()
78 TestWithScope setup; in TEST() local
80 Target target(setup.settings(), Label(SourceDir("//foo/"), "bar")); in TEST()
89 Pool pool(setup.settings(), in TEST()
[all …]
Dfunctions_target_unittest.cc15 TestWithScope setup; in TEST_F() local
19 setup.scope()->set_item_collector(&item_collector); in TEST_F()
27 good_input.parsed()->Execute(setup.scope(), &err); in TEST_F()
37 source_set_input.parsed()->Execute(setup.scope(), &err); in TEST_F()
43 TestWithScope setup; in TEST_F() local
47 setup.scope()->set_item_collector(&item_collector); in TEST_F()
56 nonscoped_input.parsed()->Execute(setup.scope(), &err); in TEST_F()
66 scoped_input.parsed()->Execute(setup.scope(), &err); in TEST_F()
76 nonexistent_arg_input.parsed()->Execute(setup.scope(), &err); in TEST_F()
87 exclusion_input.parsed()->Execute(setup.scope(), &err); in TEST_F()
[all …]
/third_party/python/Lib/unittest/test/
Dtest_functiontestcase.py15 # "When a setUp() method is defined, the test runner will run that method
18 # setUp() was used to create a fresh sequence for each test."
20 # Make sure the proper call order is maintained, even if setUp() raises
26 def setUp(): function
27 events.append('setUp')
28 raise RuntimeError('raised by setUp')
36 expected = ['startTest', 'setUp', 'addError', 'stopTest']
37 unittest.FunctionTestCase(test, setUp, tearDown).run(result)
40 # "When a setUp() method is defined, the test runner will run that method
43 # setUp() was used to create a fresh sequence for each test."
[all …]
/third_party/uboot/u-boot-2020.01/drivers/i2c/
Dstm32f7_i2c.c138 * @sudat_min: Min data setup time (ns)
157 * struct stm32_i2c_setup - private I2C timing setup parameters
179 * @scldel: Data setup time
196 struct stm32_i2c_setup *setup; member
486 static int stm32_i2c_compute_solutions(struct stm32_i2c_setup *setup, in stm32_i2c_compute_solutions() argument
492 setup->clock_src); in stm32_i2c_compute_solutions()
498 af_delay_min = setup->analog_filter ? in stm32_i2c_compute_solutions()
500 af_delay_max = setup->analog_filter ? in stm32_i2c_compute_solutions()
503 sdadel_min = i2c_specs[setup->speed].hddat_min + setup->fall_time - in stm32_i2c_compute_solutions()
504 af_delay_min - (setup->dnf + 3) * i2cclk; in stm32_i2c_compute_solutions()
[all …]
/third_party/python/Lib/distutils/tests/
Dtest_core.py14 # setup script that uses __file__
19 from distutils.core import setup
20 setup()
28 from distutils.core import setup
29 setup()
33 from distutils.core import setup
34 setup()
39 from distutils.core import setup
45 setup(cmdclass={'install': install})
50 def setUp(self): member in CoreTestCase
[all …]
/third_party/boost/tools/build/src/tools/
Dmsvc.jam85 will be used. The command will be invoked after the setup script was
90 will be used. The command will be invoked after the setup script was
100 the setup script was executed and adjusted the PATH variable.
105 setup script was executed and adjusted the PATH variable.
110 setup script was executed and adjusted the PATH variable.
114 be used. The command will be invoked after the setup script was
117 `setup`::
118 The filename of the global environment setup script to run before
121 for the current target platform. Used setup script will be passed the
126 `setup-amd64`; `setup-i386`; `setup-ia64`::
[all …]
/third_party/weston/tests/
Dweston-test-fixture-compositor.c161 /** Initialize part of compositor setup
163 * \param setup The variable to initialize.
169 compositor_setup_defaults_(struct compositor_setup *setup, in compositor_setup_defaults_() argument
172 *setup = (struct compositor_setup) { in compositor_setup_defaults_()
265 * Returns RESULT_SKIP if the given setup contains features that were disabled
271 execute_compositor(const struct compositor_setup *setup, in execute_compositor() argument
281 fprintf(stderr, "Error: environment setup failed.\n"); in execute_compositor()
286 if (setup->backend == WESTON_BACKEND_DRM) { in execute_compositor()
293 if (setup->backend == WESTON_BACKEND_FBDEV) { in execute_compositor()
300 if (setup->backend == WESTON_BACKEND_RDP) { in execute_compositor()
[all …]
/third_party/boost/boost/log/utility/
Dsetup.hpp8 * \file setup.hpp
12 * This header includes all library setup helpers.
20 #include <boost/log/utility/setup/common_attributes.hpp>
22 #include <boost/log/utility/setup/console.hpp>
23 #include <boost/log/utility/setup/file.hpp>
25 #include <boost/log/utility/setup/from_settings.hpp>
26 #include <boost/log/utility/setup/from_stream.hpp>
28 #include <boost/log/utility/setup/settings.hpp>
29 #include <boost/log/utility/setup/settings_parser.hpp>
30 #include <boost/log/utility/setup/filter_parser.hpp>
[all …]
/third_party/pyyaml/
DMakefile9 ${PYTHON} setup.py build ${PARAMETERS}
12 ${PYTHON} setup.py --with-libyaml build ${PARAMETERS}
15 ${PYTHON} setup.py build -f ${PARAMETERS}
18 ${PYTHON} setup.py --with-libyaml build -f ${PARAMETERS}
21 ${PYTHON} setup.py install ${PARAMETERS}
24 ${PYTHON} setup.py --with-libyaml install ${PARAMETERS}
33 ${PYTHON} setup.py test
37 @# ${PYTHON} setup.py --with-libyaml sdist --formats=zip,gztar
38 ${PYTHON} setup.py --with-libyaml sdist --formats=gztar
41 ${PYTHON} setup.py --with-libyaml bdist_wininst
[all …]
/third_party/gstreamer/gstplugins_bad/ext/webrtc/
Dwebrtcsdp.c249 const gchar *setup = gst_sdp_media_get_attribute_val (media, "setup"); in _media_has_setup() local
250 if (IS_EMPTY_SDP_ATTRIBUTE (setup)) { in _media_has_setup()
252 "media %u is missing or contains an empty \'setup\' attribute", in _media_has_setup()
256 if (!g_strv_contains (valid_setups, setup)) { in _media_has_setup()
258 "media %u contains unknown \'setup\' attribute, \'%s\'", media_idx, in _media_has_setup()
259 setup); in _media_has_setup()
506 #define SETUP(val) GST_WEBRTC_DTLS_SETUP_ ## val macro
515 if (g_strcmp0 (attr->key, "setup") == 0) { in _get_dtls_setup_from_media()
517 return SETUP (ACTPASS); in _get_dtls_setup_from_media()
519 return SETUP (ACTIVE); in _get_dtls_setup_from_media()
[all …]
/third_party/python/Lib/distutils/
Dcore.py4 the 'setup' function (which is to be called from the setup script). Also
15 # Mainly import these so setup scripts can "from distutils.core import" them.
22 # runs the setup script with no arguments at all. More useful help
37 # Some mild magic to control the behaviour of 'setup()' from 'run_setup()'.
41 # Legal keyword arguments for the setup() function
57 def setup (**attrs): function
58 """The gateway to the Distutils: do everything your setup script needs
62 supplied to 'setup()' (as keyword arguments), in config files, and on
66 the 'distclass' keyword argument to 'setup'; if no such class is
68 All other arguments to 'setup' (except for 'cmdclass') are used to set
[all …]
/third_party/uboot/u-boot-2020.01/drivers/usb/emul/
Dsandbox_hub.c205 struct devrequest *setup) in sandbox_hub_submit_control_msg() argument
211 switch (setup->requesttype) { in sandbox_hub_submit_control_msg()
213 switch (setup->request) { in sandbox_hub_submit_control_msg()
225 __func__, setup->requesttype, in sandbox_hub_submit_control_msg()
226 setup->request); in sandbox_hub_submit_control_msg()
230 switch (setup->request) { in sandbox_hub_submit_control_msg()
235 port = (setup->index & USB_HUB_PORT_MASK) - 1; in sandbox_hub_submit_control_msg()
245 __func__, setup->requesttype, setup->request); in sandbox_hub_submit_control_msg()
249 switch (setup->requesttype) { in sandbox_hub_submit_control_msg()
251 switch (setup->request) { in sandbox_hub_submit_control_msg()
[all …]
/third_party/skia/third_party/externals/freetype/builds/windows/
Ddetect.mk16 .PHONY: setup
103 $(info $(empty) make setup gcc (with Mingw))
104 $(info $(empty) make setup visualc Microsoft Visual C++)
105 $(info $(empty) make setup bcc32 Borland C/C++)
106 $(info $(empty) make setup lcc Win32-LCC)
107 $(info $(empty) make setup intelc Intel C/C++)
110 setup: dump_target_list
113 setup: std_setup
123 visualc: setup
132 visualc: setup
[all …]
/third_party/freetype/builds/windows/
Ddetect.mk16 .PHONY: setup
103 $(info $(empty) make setup gcc (with Mingw))
104 $(info $(empty) make setup visualc Microsoft Visual C++)
105 $(info $(empty) make setup bcc32 Borland C/C++)
106 $(info $(empty) make setup lcc Win32-LCC)
107 $(info $(empty) make setup intelc Intel C/C++)
110 setup: dump_target_list
113 setup: std_setup
123 visualc: setup
132 visualc: setup
[all …]

12345678910>>...286