X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fwscript;h=339ebb1ec8f0dab45fe26646c3ea2660917a4754;hp=5db943ab82ffe1059d27a828c03b34a0ebef0644;hb=e3f056b2c857c0428d9eaca73639b34333311767;hpb=78471c43c0c55fb9b25b4beb03dd861439da4f40 diff --git a/src/wx/wscript b/src/wx/wscript index 5db943ab8..339ebb1ec 100644 --- a/src/wx/wscript +++ b/src/wx/wscript @@ -40,6 +40,7 @@ sources = """ config_dialog.cc config_move_dialog.cc confirm_kdm_email_dialog.cc + content_advanced_dialog.cc content_colour_conversion_dialog.cc content_menu.cc content_panel.cc @@ -48,13 +49,19 @@ sources = """ content_view.cc controls.cc closed_captions_dialog.cc + credentials_download_certificate_panel.cc + custom_scale_dialog.cc dcp_panel.cc dcpomatic_button.cc + disk_warning_dialog.cc + dkdm_output_panel.cc + drive_wipe_warning_dialog.cc email_dialog.cc image_sequence_dialog.cc isdcf_metadata_dialog.cc dcp_text_track_dialog.cc dir_picker_ctrl.cc + dkdm_dialog.cc dolby_doremi_certificate_panel.cc download_certificate_dialog.cc download_certificate_panel.cc @@ -99,11 +106,16 @@ sources = """ password_entry.cc player_config_dialog.cc player_information.cc + player_stress_tester.cc playhead_to_timecode_dialog.cc playhead_to_frame_dialog.cc + playlist_controls.cc + playlist_editor_config_dialog.cc question_dialog.cc rating_dialog.cc qube_certificate_panel.cc + recipients_panel.cc + recipient_dialog.cc recreate_chain_dialog.cc repeat_dialog.cc report_problem_dialog.cc @@ -120,6 +132,7 @@ sources = """ standard_controls.cc static_text.cc subtitle_appearance_dialog.cc + suspender.cc system_font_dialog.cc system_information_dialog.cc table_dialog.cc @@ -141,9 +154,11 @@ sources = """ timeline_video_content_view.cc timeline_view.cc timing_panel.cc + try_unmount_dialog.cc update_dialog.cc verify_dcp_dialog.cc video_panel.cc + video_view.cc video_waveform_dialog.cc video_waveform_plot.cc wx_util.cc @@ -152,7 +167,7 @@ sources = """ def configure(conf): - wx_libs = 'core,richtext,adv,html,xml' + wx_libs = 'core,richtext,adv,html,xml,propgrid' try: wx_config = '/usr/lib64/wx/config/gtk2-unicode-3.0' @@ -186,7 +201,7 @@ def configure(conf): conf.env.append_value('CXXFLAGS', ['-DWGL_WGLEXT_PROTOTYPES']) if conf.options.static_wxwidgets: - # wx-config returns its static libraries as full paths, without -l prefixes, which confuses + # wx-config returns its static libraries as full paths, without -l prefixes, which confuses # check_cfg(). It puts the static libraries into LINKFLAGS_WXWIDGETS, so fish them out. stlibs = [] new_linkflags = [] @@ -210,6 +225,10 @@ def configure(conf): if not wx_version.startswith('3.0.'): conf.fatal('wxwidgets version 3.0.x is required; %s found' % wx_version) + config = conf.check_cfg(package='wxwidgets', path=wx_config, args='--selected-config').strip() + if config.find('gtk2') != -1: + conf.check_cfg(package='gtk+-2.0', args='--cflags --libs', uselib_store='GTK', mandatory=True) + try: conf.check_cfg(msg='Checking for RtAudio using pkg-config', package='rtaudio', @@ -293,7 +312,7 @@ def build(bld): if bld.env.TARGET_OSX: obj.framework = ['CoreAudio', 'OpenGL'] obj.use = 'libdcpomatic2' - if bld.env.VARIANT.startswith('swaroop-'): + if not len(bld.env.VARIANT) == 0 and bld.env.VARIANT.startswith('swaroop-'): obj.source = sources + " swaroop_controls.cc" else: obj.source = sources