瀏覽代碼

[cpp] Use .mm extension for resource files if required

hughsando 9 年之前
父節點
當前提交
d4178e8bb0
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/generators/gencpp.ml

+ 2 - 1
src/generators/gencpp.ml

@@ -6162,9 +6162,10 @@ let write_build_data common_ctx filename classes main_deps boot_deps build_extra
    output_string buildfile "</files>\n";
    output_string buildfile "<files id=\"__resources__\">\n";
    let idx = ref 0 in
+   let ext = source_file_extension common_ctx in
    Hashtbl.iter (fun _ data ->
       let id = "__res_" ^ (string_of_int !idx) in
-      output_string buildfile ("<file name=\"src/resources/" ^ id ^ ".cpp\" tags=\"optim-none\" />\n");
+      output_string buildfile ("<file name=\"src/resources/" ^ id ^ ext ^ "\" tags=\"optim-none\" />\n");
       incr idx;
    ) common_ctx.resources;
    output_string buildfile "</files>\n";