~elementary-apps/dexter-contacts/trunk

« back to all changes in this revision

Viewing changes to cmake/ValaPrecompile.cmake

  • Committer: Corentin Noël
  • Date: 2015-01-01 14:40:22 UTC
  • Revision ID: corentin@elementaryos.org-20150101144022-ykhcuzywkxu3gy9y
Visual refinements.

Show diffs side-by-side

added added

removed removed

Lines of Context:
185
185
    endif(ARGS_GENERATE_HEADER)
186
186
 
187
187
    set(gir_arguments "")
 
188
    set(gircomp_command "")
188
189
    if(ARGS_GENERATE_GIR)
189
190
        list(APPEND out_files "${DIRECTORY}/${ARGS_GENERATE_GIR}.gir")
190
191
        list(APPEND out_files_display "${ARGS_GENERATE_GIR}.gir")
191
192
        set(gir_arguments "--gir=${ARGS_GENERATE_GIR}.gir")
 
193
 
 
194
        include (FindGirCompiler)
 
195
        find_package(GirCompiler REQUIRED)
 
196
        
 
197
        set(gircomp_command 
 
198
            COMMAND 
 
199
                ${G_IR_COMPILER_EXECUTABLE}
 
200
            ARGS 
 
201
                "${DIRECTORY}/${ARGS_GENERATE_GIR}.gir"
 
202
                -o "${DIRECTORY}/${ARGS_GENERATE_GIR}.typelib")
192
203
    endif(ARGS_GENERATE_GIR)
193
204
 
194
205
    set(symbols_arguments "")
217
228
        "-d" ${DIRECTORY} 
218
229
        ${vala_pkg_opts} 
219
230
        ${ARGS_OPTIONS} 
 
231
        "-g"
220
232
        ${in_files} 
221
233
        ${custom_vapi_arguments}
222
234
    COMMAND
228
240
        ${ARGS_CUSTOM_VAPIS}
229
241
    COMMENT
230
242
        "Generating ${out_files_display}"
 
243
    ${gircomp_command}
231
244
    )
232
245
 
233
246
    # This command will be run twice for some reason (pass a non-empty string to COMMENT