|
11 | 11 | from qmk.keyboard import keyboard_folder |
12 | 12 | from qmk.info import keymap_json |
13 | 13 | from qmk.keymap import locate_keymap |
14 | | -from qmk.path import is_under_qmk_firmware, is_under_qmk_userspace |
| 14 | +from qmk.path import is_under_qmk_firmware, is_under_qmk_userspace, unix_style_path |
15 | 15 |
|
16 | 16 | # These must be kept in the order in which they're applied to $(TARGET) in the makefiles in order to ensure consistency. |
17 | 17 | TARGET_FILENAME_MODIFIERS = ['FORCE_LAYOUT', 'CONVERT_TO'] |
@@ -204,11 +204,11 @@ def compile_command(self, build_target: str = None, dry_run: bool = False, **env |
204 | 204 | if is_under_qmk_userspace(keymap_location) and not is_under_qmk_firmware(keymap_location): |
205 | 205 | keymap_directory = keymap_location.parent |
206 | 206 | compile_args.extend([ |
207 | | - f'MAIN_KEYMAP_PATH_1={keymap_directory}', |
208 | | - f'MAIN_KEYMAP_PATH_2={keymap_directory}', |
209 | | - f'MAIN_KEYMAP_PATH_3={keymap_directory}', |
210 | | - f'MAIN_KEYMAP_PATH_4={keymap_directory}', |
211 | | - f'MAIN_KEYMAP_PATH_5={keymap_directory}', |
| 207 | + f'MAIN_KEYMAP_PATH_1={unix_style_path(keymap_directory)}', |
| 208 | + f'MAIN_KEYMAP_PATH_2={unix_style_path(keymap_directory)}', |
| 209 | + f'MAIN_KEYMAP_PATH_3={unix_style_path(keymap_directory)}', |
| 210 | + f'MAIN_KEYMAP_PATH_4={unix_style_path(keymap_directory)}', |
| 211 | + f'MAIN_KEYMAP_PATH_5={unix_style_path(keymap_directory)}', |
212 | 212 | ]) |
213 | 213 |
|
214 | 214 | return compile_args |
@@ -267,11 +267,11 @@ def compile_command(self, build_target: str = None, dry_run: bool = False, **env |
267 | 267 | generated_files_path = intermediate_output / 'src' |
268 | 268 | keymap_json = generated_files_path / 'keymap.json' |
269 | 269 | compile_args.extend([ |
270 | | - f'MAIN_KEYMAP_PATH_1={intermediate_output}', |
271 | | - f'MAIN_KEYMAP_PATH_2={intermediate_output}', |
272 | | - f'MAIN_KEYMAP_PATH_3={intermediate_output}', |
273 | | - f'MAIN_KEYMAP_PATH_4={intermediate_output}', |
274 | | - f'MAIN_KEYMAP_PATH_5={intermediate_output}', |
| 270 | + f'MAIN_KEYMAP_PATH_1={unix_style_path(intermediate_output)}', |
| 271 | + f'MAIN_KEYMAP_PATH_2={unix_style_path(intermediate_output)}', |
| 272 | + f'MAIN_KEYMAP_PATH_3={unix_style_path(intermediate_output)}', |
| 273 | + f'MAIN_KEYMAP_PATH_4={unix_style_path(intermediate_output)}', |
| 274 | + f'MAIN_KEYMAP_PATH_5={unix_style_path(intermediate_output)}', |
275 | 275 | f'KEYMAP_JSON={keymap_json}', |
276 | 276 | f'KEYMAP_PATH={generated_files_path}', |
277 | 277 | ]) |
|
0 commit comments