Skip to content

Commit 13da43d

Browse files
authored
Merge pull request #530 from ThrowTheSwitch/refactor/inherit_targets
Refactor/inherit targets
2 parents 9900e4c + 469fe27 commit 13da43d

23 files changed

Lines changed: 611 additions & 1184 deletions

examples/temp_sensor/project.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# =========================================================================
2+
# CMock - Automatic Mock Generation for C
3+
# ThrowTheSwitch.org
4+
# Copyright (c) 2007-26 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
# SPDX-License-Identifier: MIT
6+
# =========================================================================
7+
8+
:project:
9+
:build_root: 'build/'
10+
:colour: true
11+
12+
:paths:
13+
:source:
14+
- 'src/'
15+
:include:
16+
- 'src/'
17+
- '../../src/'
18+
- '../../vendor/unity/src/'
19+
- '../../vendor/unity/examples/example_3/helper/'
20+
- 'build/mocks/'
21+
- 'test/'
22+
:test: 'test/'
23+
:build: 'build/'
24+
:mocks: 'build/mocks/'
25+
26+
:extension:
27+
:object: '.o'
28+
:executable: '.exe'
29+
30+
:defines:
31+
:common:
32+
- __monitor
33+
- UNITY_SUPPORT_64
34+
35+
:cmock:
36+
# Core configuration
37+
:plugins: []
38+
:verbosity: 2
39+
:when_no_prototypes: :warn
40+
41+
# File configuration
42+
:mock_path: 'build/mocks'
43+
:skeleton_path: ''
44+
:mock_prefix: 'Mock'
45+
:mock_suffix: ''
46+
47+
# Parser configuration
48+
:strippables:
49+
- '(?:__attribute__\s*\([ (]*.*?[ )]*\)+)'
50+
:attributes:
51+
- __ramfunc
52+
- __irq
53+
- __fiq
54+
- register
55+
- extern
56+
:c_calling_conventions:
57+
- __stdcall
58+
- __cdecl
59+
- __fastcall
60+
:treat_externs: :exclude
61+
:treat_inlines: :exclude
62+
63+
# Type handling configuration
64+
:memcmp_if_unknown: true
65+
:when_ptr: :compare_data
66+
67+
# Mock generation configuration
68+
:weak: ''
69+
:enforce_strict_ordering: false
70+
:fail_on_unexpected_calls: true
71+
:callback_include_count: true
72+
:callback_after_arg_check: false
73+
:includes:
74+
- Types.h
75+
:exclude_setjmp_h: false

examples/temp_sensor/rakefile.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
end
2121

2222
# Load default configuration, for now
23-
DEFAULT_CONFIG_FILE = 'gcc.yml'.freeze
23+
DEFAULT_CONFIG_FILE = 'gcc_64.yml'.freeze
2424
configure_toolchain(DEFAULT_CONFIG_FILE)
2525

2626
task :unit do
@@ -39,8 +39,8 @@
3939
task :cruise => [:default]
4040

4141
desc 'Load configuration'
42-
task :config, :config_file do |_t, args|
43-
configure_toolchain(args[:config_file])
42+
task :config, [:config_file, :cmock_overlay] do |_t, args|
43+
configure_toolchain(args[:config_file], args[:cmock_overlay])
4444
end
4545

4646
desc 'Return error on Failures'

0 commit comments

Comments
 (0)