#cmake -DCMAKE_PREFIX_PATH=path to Qt6 .
#cmake --build . --target texmaker_lupdate
#cmake --build . --target texmaker_updateqms
cmake_minimum_required(VERSION 3.16)

project(texmaker VERSION 5.1.4 LANGUAGES CXX C)

################ OPTIONS ####################
set(COMPILEUSB "no")
set(PATH_TO_USBVERSION "/home/xm1/Documents/texmakerusb/")
set(AUTHORIZELINUXQSTYLES "yes")
set(INTERNALBROWSER "yes")
#############################################

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_AUTORCC ON)

find_package(Qt6 REQUIRED COMPONENTS Gui Concurrent Core Core5Compat Network PrintSupport Qml Widgets Xml LinguistTools)
qt_standard_project_setup()


if (UNIX AND NOT MACOS)
	set(texmaker_SRCS_PLATFORM
		singleapp/qtlockedfile_unix.cpp
	)
elseif (WIN32)
	set(texmaker_SRCS_PLATFORM
        singleapp/qtlockedfile_win.cpp
        pdfium/core/fxge/win32/dwrite_int.h
        pdfium/core/fxge/win32/fx_win32_device.cpp
        pdfium/core/fxge/win32/fx_win32_dib.cpp
        pdfium/core/fxge/win32/fx_win32_dwrite.cpp
        pdfium/core/fxge/win32/fx_win32_gdipext.cpp
        pdfium/core/fxge/win32/fx_win32_print.cpp
        pdfium/core/fxge/win32/win32_int.h
	)
elseif (MACOS)
	set(texmaker_SRCS_PLATFORM
        singleapp/qtlockedfile_unix.cpp
        pdfium/core/fxge/apple/apple_int.h
        pdfium/core/fxge/apple/fx_apple_platform.cpp
        pdfium/core/fxge/apple/fx_mac_imp.cpp
        pdfium/core/fxge/apple/fx_quartz_device.cpp
	)
endif()

set(texmaker_SRCS
${texmaker_SRCS_PLATFORM}
encodingprober/CharDistribution.cpp encodingprober/CharDistribution.h
encodingprober/ChineseGroupProber.cpp encodingprober/ChineseGroupProber.h
encodingprober/JapaneseGroupProber.cpp encodingprober/JapaneseGroupProber.h
encodingprober/JpCntx.cpp encodingprober/JpCntx.h
encodingprober/LangBulgarianModel.cpp
encodingprober/LangCyrillicModel.cpp
encodingprober/LangGreekModel.cpp
encodingprober/LangHebrewModel.cpp
encodingprober/LangHungarianModel.cpp
encodingprober/LangThaiModel.cpp
encodingprober/UnicodeGroupProber.cpp encodingprober/UnicodeGroupProber.h
encodingprober/ctype_test_p.h
encodingprober/nsBig5Prober.cpp encodingprober/nsBig5Prober.h
encodingprober/nsCharSetProber.cpp encodingprober/nsCharSetProber.h
encodingprober/nsCodingStateMachine.h
encodingprober/nsEUCJPProber.cpp encodingprober/nsEUCJPProber.h
encodingprober/nsEUCKRProber.cpp encodingprober/nsEUCKRProber.h
encodingprober/nsEUCTWProber.cpp encodingprober/nsEUCTWProber.h
encodingprober/nsEscCharsetProber.cpp encodingprober/nsEscCharsetProber.h
encodingprober/nsEscSM.cpp
encodingprober/nsGB2312Prober.cpp encodingprober/nsGB2312Prober.h
encodingprober/nsHebrewProber.cpp encodingprober/nsHebrewProber.h
encodingprober/nsLatin1Prober.cpp encodingprober/nsLatin1Prober.h
encodingprober/nsMBCSGroupProber.cpp encodingprober/nsMBCSGroupProber.h
encodingprober/nsMBCSSM.cpp
encodingprober/nsPkgInt.h
encodingprober/nsSBCSGroupProber.cpp encodingprober/nsSBCSGroupProber.h
encodingprober/nsSBCharSetProber.cpp encodingprober/nsSBCharSetProber.h
encodingprober/nsSJISProber.cpp encodingprober/nsSJISProber.h
encodingprober/nsUniversalDetector.cpp encodingprober/nsUniversalDetector.h
encodingprober/qencodingprober.cpp encodingprober/qencodingprober.h
singleapp/qtlockedfile.cpp
singleapp/qtsingleapplication.cpp
singleapp/qtlocalpeer.cpp
singleapp/qtsinglecoreapplication.cpp
singleapp/qtlocalpeer.h
singleapp/qtsingleapplication.h
singleapp/qtlockedfile.h
singleapp/qtsinglecoreapplication.h
hunspell/affentry.cxx hunspell/affentry.hxx
hunspell/affixmgr.cxx hunspell/affixmgr.hxx
hunspell/atypes.hxx
hunspell/baseaffix.hxx
hunspell/csutil.cxx hunspell/csutil.hxx
hunspell/filemgr.cxx hunspell/filemgr.hxx
hunspell/hashmgr.cxx hunspell/hashmgr.hxx
hunspell/htypes.hxx
hunspell/hunspell.cxx hunspell/hunspell.h hunspell/hunspell.hxx
hunspell/hunvisapi.h
hunspell/hunzip.cxx hunspell/hunzip.hxx
hunspell/langnum.hxx
hunspell/phonet.cxx hunspell/phonet.hxx
hunspell/replist.cxx hunspell/replist.hxx
hunspell/suggestmgr.cxx hunspell/suggestmgr.hxx
hunspell/utf_info.hxx
hunspell/w_char.hxx
pdfium/core/fdrm/crypto/fx_crypt.cpp pdfium/core/fdrm/crypto/fx_crypt.h
pdfium/core/fdrm/crypto/fx_crypt_aes.cpp
pdfium/core/fdrm/crypto/fx_crypt_sha.cpp
pdfium/core/fpdfapi/cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp
pdfium/core/fpdfapi/cmaps/CNS1/B5pc-H_0.cpp
pdfium/core/fpdfapi/cmaps/CNS1/B5pc-V_0.cpp
pdfium/core/fpdfapi/cmaps/CNS1/CNS-EUC-H_0.cpp
pdfium/core/fpdfapi/cmaps/CNS1/CNS-EUC-V_0.cpp
pdfium/core/fpdfapi/cmaps/CNS1/ETen-B5-H_0.cpp
pdfium/core/fpdfapi/cmaps/CNS1/ETen-B5-V_0.cpp
pdfium/core/fpdfapi/cmaps/CNS1/ETenms-B5-H_0.cpp
pdfium/core/fpdfapi/cmaps/CNS1/ETenms-B5-V_0.cpp
pdfium/core/fpdfapi/cmaps/CNS1/HKscs-B5-H_5.cpp
pdfium/core/fpdfapi/cmaps/CNS1/HKscs-B5-V_5.cpp
pdfium/core/fpdfapi/cmaps/CNS1/UniCNS-UCS2-H_3.cpp
pdfium/core/fpdfapi/cmaps/CNS1/UniCNS-UCS2-V_3.cpp
pdfium/core/fpdfapi/cmaps/CNS1/UniCNS-UTF16-H_0.cpp
pdfium/core/fpdfapi/cmaps/CNS1/cmaps_cns1.cpp
pdfium/core/fpdfapi/cmaps/GB1/Adobe-GB1-UCS2_5.cpp
pdfium/core/fpdfapi/cmaps/GB1/GB-EUC-H_0.cpp
pdfium/core/fpdfapi/cmaps/GB1/GB-EUC-V_0.cpp
pdfium/core/fpdfapi/cmaps/GB1/GBK-EUC-H_2.cpp
pdfium/core/fpdfapi/cmaps/GB1/GBK-EUC-V_2.cpp
pdfium/core/fpdfapi/cmaps/GB1/GBK2K-H_5.cpp
pdfium/core/fpdfapi/cmaps/GB1/GBK2K-V_5.cpp
pdfium/core/fpdfapi/cmaps/GB1/GBKp-EUC-H_2.cpp
pdfium/core/fpdfapi/cmaps/GB1/GBKp-EUC-V_2.cpp
pdfium/core/fpdfapi/cmaps/GB1/GBpc-EUC-H_0.cpp
pdfium/core/fpdfapi/cmaps/GB1/GBpc-EUC-V_0.cpp
pdfium/core/fpdfapi/cmaps/GB1/UniGB-UCS2-H_4.cpp
pdfium/core/fpdfapi/cmaps/GB1/UniGB-UCS2-V_4.cpp
pdfium/core/fpdfapi/cmaps/GB1/cmaps_gb1.cpp
pdfium/core/fpdfapi/cmaps/Japan1/83pv-RKSJ-H_1.cpp
pdfium/core/fpdfapi/cmaps/Japan1/90ms-RKSJ-H_2.cpp
pdfium/core/fpdfapi/cmaps/Japan1/90ms-RKSJ-V_2.cpp
pdfium/core/fpdfapi/cmaps/Japan1/90msp-RKSJ-H_2.cpp
pdfium/core/fpdfapi/cmaps/Japan1/90msp-RKSJ-V_2.cpp
pdfium/core/fpdfapi/cmaps/Japan1/90pv-RKSJ-H_1.cpp
pdfium/core/fpdfapi/cmaps/Japan1/Add-RKSJ-H_1.cpp
pdfium/core/fpdfapi/cmaps/Japan1/Add-RKSJ-V_1.cpp
pdfium/core/fpdfapi/cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp
pdfium/core/fpdfapi/cmaps/Japan1/EUC-H_1.cpp
pdfium/core/fpdfapi/cmaps/Japan1/EUC-V_1.cpp
pdfium/core/fpdfapi/cmaps/Japan1/Ext-RKSJ-H_2.cpp
pdfium/core/fpdfapi/cmaps/Japan1/Ext-RKSJ-V_2.cpp
pdfium/core/fpdfapi/cmaps/Japan1/H_1.cpp
pdfium/core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp
pdfium/core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp
pdfium/core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-H_4.cpp
pdfium/core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-V_4.cpp
pdfium/core/fpdfapi/cmaps/Japan1/V_1.cpp
pdfium/core/fpdfapi/cmaps/Japan1/cmaps_japan1.cpp
pdfium/core/fpdfapi/cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp
pdfium/core/fpdfapi/cmaps/Korea1/KSC-EUC-H_0.cpp
pdfium/core/fpdfapi/cmaps/Korea1/KSC-EUC-V_0.cpp
pdfium/core/fpdfapi/cmaps/Korea1/KSCms-UHC-HW-H_1.cpp
pdfium/core/fpdfapi/cmaps/Korea1/KSCms-UHC-HW-V_1.cpp
pdfium/core/fpdfapi/cmaps/Korea1/KSCms-UHC-H_1.cpp
pdfium/core/fpdfapi/cmaps/Korea1/KSCms-UHC-V_1.cpp
pdfium/core/fpdfapi/cmaps/Korea1/KSCpc-EUC-H_0.cpp
pdfium/core/fpdfapi/cmaps/Korea1/UniKS-UCS2-H_1.cpp
pdfium/core/fpdfapi/cmaps/Korea1/UniKS-UCS2-V_1.cpp
pdfium/core/fpdfapi/cmaps/Korea1/UniKS-UTF16-H_0.cpp
pdfium/core/fpdfapi/cmaps/Korea1/cmaps_korea1.cpp
pdfium/core/fpdfapi/cmaps/cmap_int.h
pdfium/core/fpdfapi/cmaps/fpdf_cmaps.cpp
pdfium/core/fpdfapi/cpdf_modulemgr.cpp pdfium/core/fpdfapi/cpdf_modulemgr.h
pdfium/core/fpdfapi/cpdf_pagerendercontext.cpp pdfium/core/fpdfapi/cpdf_pagerendercontext.h
pdfium/core/fpdfapi/edit/cpdf_creator.h
pdfium/core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp pdfium/core/fpdfapi/edit/cpdf_pagecontentgenerator.h
pdfium/core/fpdfapi/edit/editint.h
pdfium/core/fpdfapi/edit/fpdf_edit_create.cpp
pdfium/core/fpdfapi/font/cpdf_cidfont.cpp pdfium/core/fpdfapi/font/cpdf_cidfont.h
pdfium/core/fpdfapi/font/cpdf_font.cpp pdfium/core/fpdfapi/font/cpdf_font.h
pdfium/core/fpdfapi/font/cpdf_fontencoding.cpp pdfium/core/fpdfapi/font/cpdf_fontencoding.h
pdfium/core/fpdfapi/font/cpdf_simplefont.cpp pdfium/core/fpdfapi/font/cpdf_simplefont.h
pdfium/core/fpdfapi/font/cpdf_truetypefont.cpp pdfium/core/fpdfapi/font/cpdf_truetypefont.h
pdfium/core/fpdfapi/font/cpdf_type1font.cpp pdfium/core/fpdfapi/font/cpdf_type1font.h
pdfium/core/fpdfapi/font/cpdf_type3char.cpp pdfium/core/fpdfapi/font/cpdf_type3char.h
pdfium/core/fpdfapi/font/cpdf_type3font.cpp pdfium/core/fpdfapi/font/cpdf_type3font.h
pdfium/core/fpdfapi/font/font_int.h
pdfium/core/fpdfapi/font/fpdf_font.cpp
pdfium/core/fpdfapi/font/fpdf_font_cid.cpp
pdfium/core/fpdfapi/font/ttgsubtable.cpp pdfium/core/fpdfapi/font/ttgsubtable.h
pdfium/core/fpdfapi/page/cpdf_allstates.cpp pdfium/core/fpdfapi/page/cpdf_allstates.h
pdfium/core/fpdfapi/page/cpdf_clippath.cpp pdfium/core/fpdfapi/page/cpdf_clippath.h
pdfium/core/fpdfapi/page/cpdf_color.cpp pdfium/core/fpdfapi/page/cpdf_color.h
pdfium/core/fpdfapi/page/cpdf_colorspace.cpp pdfium/core/fpdfapi/page/cpdf_colorspace.h
pdfium/core/fpdfapi/page/cpdf_colorstate.cpp pdfium/core/fpdfapi/page/cpdf_colorstate.h
pdfium/core/fpdfapi/page/cpdf_contentmark.cpp pdfium/core/fpdfapi/page/cpdf_contentmark.h
pdfium/core/fpdfapi/page/cpdf_contentmarkitem.cpp pdfium/core/fpdfapi/page/cpdf_contentmarkitem.h
pdfium/core/fpdfapi/page/cpdf_contentparser.cpp
pdfium/core/fpdfapi/page/cpdf_countedobject.h
pdfium/core/fpdfapi/page/cpdf_docpagedata.cpp pdfium/core/fpdfapi/page/cpdf_docpagedata.h
pdfium/core/fpdfapi/page/cpdf_form.cpp pdfium/core/fpdfapi/page/cpdf_form.h
pdfium/core/fpdfapi/page/cpdf_formobject.cpp pdfium/core/fpdfapi/page/cpdf_formobject.h
pdfium/core/fpdfapi/page/cpdf_generalstate.cpp pdfium/core/fpdfapi/page/cpdf_generalstate.h
pdfium/core/fpdfapi/page/cpdf_graphicstates.cpp pdfium/core/fpdfapi/page/cpdf_graphicstates.h
pdfium/core/fpdfapi/page/cpdf_image.cpp pdfium/core/fpdfapi/page/cpdf_image.h
pdfium/core/fpdfapi/page/cpdf_imageobject.cpp pdfium/core/fpdfapi/page/cpdf_imageobject.h
pdfium/core/fpdfapi/page/cpdf_meshstream.cpp pdfium/core/fpdfapi/page/cpdf_meshstream.h
pdfium/core/fpdfapi/page/cpdf_page.cpp pdfium/core/fpdfapi/page/cpdf_page.h
pdfium/core/fpdfapi/page/cpdf_pagemodule.cpp pdfium/core/fpdfapi/page/cpdf_pagemodule.h
pdfium/core/fpdfapi/page/cpdf_pageobject.cpp pdfium/core/fpdfapi/page/cpdf_pageobject.h
pdfium/core/fpdfapi/page/cpdf_pageobjectholder.cpp pdfium/core/fpdfapi/page/cpdf_pageobjectholder.h
pdfium/core/fpdfapi/page/cpdf_pageobjectlist.cpp pdfium/core/fpdfapi/page/cpdf_pageobjectlist.h
pdfium/core/fpdfapi/page/cpdf_path.cpp pdfium/core/fpdfapi/page/cpdf_path.h
pdfium/core/fpdfapi/page/cpdf_pathobject.cpp pdfium/core/fpdfapi/page/cpdf_pathobject.h
pdfium/core/fpdfapi/page/cpdf_pattern.cpp pdfium/core/fpdfapi/page/cpdf_pattern.h
pdfium/core/fpdfapi/page/cpdf_shadingobject.cpp pdfium/core/fpdfapi/page/cpdf_shadingobject.h
pdfium/core/fpdfapi/page/cpdf_shadingpattern.cpp pdfium/core/fpdfapi/page/cpdf_shadingpattern.h
pdfium/core/fpdfapi/page/cpdf_streamcontentparser.cpp pdfium/core/fpdfapi/page/cpdf_streamcontentparser.h
pdfium/core/fpdfapi/page/cpdf_streamparser.cpp
pdfium/core/fpdfapi/page/cpdf_textobject.cpp pdfium/core/fpdfapi/page/cpdf_textobject.h
pdfium/core/fpdfapi/page/cpdf_textstate.cpp pdfium/core/fpdfapi/page/cpdf_textstate.h
pdfium/core/fpdfapi/page/cpdf_tilingpattern.cpp pdfium/core/fpdfapi/page/cpdf_tilingpattern.h
pdfium/core/fpdfapi/page/fpdf_page_colors.cpp
pdfium/core/fpdfapi/page/fpdf_page_func.cpp
pdfium/core/fpdfapi/page/pageint.h
pdfium/core/fpdfapi/parser/cfdf_document.cpp pdfium/core/fpdfapi/parser/cfdf_document.h
pdfium/core/fpdfapi/parser/cpdf_array.cpp pdfium/core/fpdfapi/parser/cpdf_array.h
pdfium/core/fpdfapi/parser/cpdf_boolean.cpp pdfium/core/fpdfapi/parser/cpdf_boolean.h
pdfium/core/fpdfapi/parser/cpdf_crypto_handler.cpp pdfium/core/fpdfapi/parser/cpdf_crypto_handler.h
pdfium/core/fpdfapi/parser/cpdf_data_avail.cpp pdfium/core/fpdfapi/parser/cpdf_data_avail.h
pdfium/core/fpdfapi/parser/cpdf_dictionary.cpp pdfium/core/fpdfapi/parser/cpdf_dictionary.h
pdfium/core/fpdfapi/parser/cpdf_document.cpp pdfium/core/fpdfapi/parser/cpdf_document.h
pdfium/core/fpdfapi/parser/cpdf_hint_tables.cpp pdfium/core/fpdfapi/parser/cpdf_hint_tables.h
pdfium/core/fpdfapi/parser/cpdf_indirect_object_holder.cpp pdfium/core/fpdfapi/parser/cpdf_indirect_object_holder.h
pdfium/core/fpdfapi/parser/cpdf_linearized_header.cpp pdfium/core/fpdfapi/parser/cpdf_linearized_header.h
pdfium/core/fpdfapi/parser/cpdf_name.cpp pdfium/core/fpdfapi/parser/cpdf_name.h
pdfium/core/fpdfapi/parser/cpdf_null.cpp pdfium/core/fpdfapi/parser/cpdf_null.h
pdfium/core/fpdfapi/parser/cpdf_number.cpp pdfium/core/fpdfapi/parser/cpdf_number.h
pdfium/core/fpdfapi/parser/cpdf_object.cpp pdfium/core/fpdfapi/parser/cpdf_object.h
pdfium/core/fpdfapi/parser/cpdf_parser.cpp pdfium/core/fpdfapi/parser/cpdf_parser.h
pdfium/core/fpdfapi/parser/cpdf_reference.cpp pdfium/core/fpdfapi/parser/cpdf_reference.h
pdfium/core/fpdfapi/parser/cpdf_security_handler.cpp pdfium/core/fpdfapi/parser/cpdf_security_handler.h
pdfium/core/fpdfapi/parser/cpdf_simple_parser.cpp pdfium/core/fpdfapi/parser/cpdf_simple_parser.h
pdfium/core/fpdfapi/parser/cpdf_stream.cpp pdfium/core/fpdfapi/parser/cpdf_stream.h
pdfium/core/fpdfapi/parser/cpdf_stream_acc.cpp pdfium/core/fpdfapi/parser/cpdf_stream_acc.h
pdfium/core/fpdfapi/parser/cpdf_string.cpp pdfium/core/fpdfapi/parser/cpdf_string.h
pdfium/core/fpdfapi/parser/cpdf_syntax_parser.cpp pdfium/core/fpdfapi/parser/cpdf_syntax_parser.h
pdfium/core/fpdfapi/parser/fpdf_parser_decode.cpp pdfium/core/fpdfapi/parser/fpdf_parser_decode.h
pdfium/core/fpdfapi/parser/fpdf_parser_utility.cpp pdfium/core/fpdfapi/parser/fpdf_parser_utility.h
pdfium/core/fpdfapi/render/cpdf_docrenderdata.cpp pdfium/core/fpdfapi/render/cpdf_docrenderdata.h
pdfium/core/fpdfapi/render/cpdf_pagerendercache.h
pdfium/core/fpdfapi/render/cpdf_progressiverenderer.h
pdfium/core/fpdfapi/render/cpdf_rendercontext.h
pdfium/core/fpdfapi/render/cpdf_renderoptions.h
pdfium/core/fpdfapi/render/cpdf_textrenderer.h
pdfium/core/fpdfapi/render/cpdf_type3cache.cpp pdfium/core/fpdfapi/render/cpdf_type3cache.h
pdfium/core/fpdfapi/render/cpdf_type3glyphs.cpp pdfium/core/fpdfapi/render/cpdf_type3glyphs.h
pdfium/core/fpdfapi/render/fpdf_render.cpp
pdfium/core/fpdfapi/render/fpdf_render_cache.cpp
pdfium/core/fpdfapi/render/fpdf_render_image.cpp
pdfium/core/fpdfapi/render/fpdf_render_loadimage.cpp
pdfium/core/fpdfapi/render/fpdf_render_pattern.cpp
pdfium/core/fpdfapi/render/fpdf_render_text.cpp
pdfium/core/fpdfapi/render/render_int.h
pdfium/core/fpdfdoc/cline.cpp pdfium/core/fpdfdoc/cline.h
pdfium/core/fpdfdoc/clines.cpp pdfium/core/fpdfdoc/clines.h
pdfium/core/fpdfdoc/cpdf_aaction.cpp pdfium/core/fpdfdoc/cpdf_aaction.h
pdfium/core/fpdfdoc/cpdf_action.cpp pdfium/core/fpdfdoc/cpdf_action.h
pdfium/core/fpdfdoc/cpdf_actionfields.cpp pdfium/core/fpdfdoc/cpdf_actionfields.h
pdfium/core/fpdfdoc/cpdf_annot.cpp pdfium/core/fpdfdoc/cpdf_annot.h
pdfium/core/fpdfdoc/cpdf_annotlist.cpp pdfium/core/fpdfdoc/cpdf_annotlist.h
pdfium/core/fpdfdoc/cpdf_apsettings.cpp pdfium/core/fpdfdoc/cpdf_apsettings.h
pdfium/core/fpdfdoc/cpdf_bookmark.cpp pdfium/core/fpdfdoc/cpdf_bookmark.h
pdfium/core/fpdfdoc/cpdf_bookmarktree.cpp pdfium/core/fpdfdoc/cpdf_bookmarktree.h
pdfium/core/fpdfdoc/cpdf_defaultappearance.cpp pdfium/core/fpdfdoc/cpdf_defaultappearance.h
pdfium/core/fpdfdoc/cpdf_dest.cpp pdfium/core/fpdfdoc/cpdf_dest.h
pdfium/core/fpdfdoc/cpdf_docjsactions.cpp pdfium/core/fpdfdoc/cpdf_docjsactions.h
pdfium/core/fpdfdoc/cpdf_filespec.cpp pdfium/core/fpdfdoc/cpdf_filespec.h
pdfium/core/fpdfdoc/cpdf_formcontrol.cpp pdfium/core/fpdfdoc/cpdf_formcontrol.h
pdfium/core/fpdfdoc/cpdf_formfield.cpp pdfium/core/fpdfdoc/cpdf_formfield.h
pdfium/core/fpdfdoc/cpdf_iconfit.cpp pdfium/core/fpdfdoc/cpdf_iconfit.h
pdfium/core/fpdfdoc/cpdf_interform.cpp pdfium/core/fpdfdoc/cpdf_interform.h
pdfium/core/fpdfdoc/cpdf_link.cpp pdfium/core/fpdfdoc/cpdf_link.h
pdfium/core/fpdfdoc/cpdf_linklist.cpp pdfium/core/fpdfdoc/cpdf_linklist.h
pdfium/core/fpdfdoc/cpdf_metadata.cpp pdfium/core/fpdfdoc/cpdf_metadata.h
pdfium/core/fpdfdoc/cpdf_nametree.cpp pdfium/core/fpdfdoc/cpdf_nametree.h
pdfium/core/fpdfdoc/cpdf_numbertree.cpp pdfium/core/fpdfdoc/cpdf_numbertree.h
pdfium/core/fpdfdoc/cpdf_occontext.cpp pdfium/core/fpdfdoc/cpdf_occontext.h
pdfium/core/fpdfdoc/cpdf_pagelabel.cpp pdfium/core/fpdfdoc/cpdf_pagelabel.h
pdfium/core/fpdfdoc/cpdf_variabletext.cpp pdfium/core/fpdfdoc/cpdf_variabletext.h
pdfium/core/fpdfdoc/cpdf_viewerpreferences.cpp pdfium/core/fpdfdoc/cpdf_viewerpreferences.h
pdfium/core/fpdfdoc/cpvt_arraytemplate.h
pdfium/core/fpdfdoc/cpvt_color.cpp pdfium/core/fpdfdoc/cpvt_color.h
pdfium/core/fpdfdoc/cpvt_dash.h
pdfium/core/fpdfdoc/cpvt_floatrect.h
pdfium/core/fpdfdoc/cpvt_fontmap.cpp pdfium/core/fpdfdoc/cpvt_fontmap.h
pdfium/core/fpdfdoc/cpvt_generateap.cpp pdfium/core/fpdfdoc/cpvt_generateap.h
pdfium/core/fpdfdoc/cpvt_line.h
pdfium/core/fpdfdoc/cpvt_lineinfo.h
pdfium/core/fpdfdoc/cpvt_secprops.h
pdfium/core/fpdfdoc/cpvt_section.h
pdfium/core/fpdfdoc/cpvt_sectioninfo.cpp pdfium/core/fpdfdoc/cpvt_sectioninfo.h
pdfium/core/fpdfdoc/cpvt_word.h
pdfium/core/fpdfdoc/cpvt_wordinfo.cpp pdfium/core/fpdfdoc/cpvt_wordinfo.h
pdfium/core/fpdfdoc/cpvt_wordplace.h
pdfium/core/fpdfdoc/cpvt_wordprops.h
pdfium/core/fpdfdoc/cpvt_wordrange.h
pdfium/core/fpdfdoc/csection.cpp pdfium/core/fpdfdoc/csection.h
pdfium/core/fpdfdoc/ctypeset.cpp pdfium/core/fpdfdoc/ctypeset.h
pdfium/core/fpdfdoc/doc_tagged.cpp
pdfium/core/fpdfdoc/fpdf_tagged.h
pdfium/core/fpdfdoc/ipdf_formnotify.h
pdfium/core/fpdfdoc/ipvt_fontmap.h
pdfium/core/fpdfdoc/tagged_int.h
pdfium/core/fpdftext/cpdf_linkextract.cpp pdfium/core/fpdftext/cpdf_linkextract.h
pdfium/core/fpdftext/cpdf_textpage.cpp pdfium/core/fpdftext/cpdf_textpage.h
pdfium/core/fpdftext/cpdf_textpagefind.cpp pdfium/core/fpdftext/cpdf_textpagefind.h
pdfium/core/fpdftext/unicodenormalizationdata.cpp pdfium/core/fpdftext/unicodenormalizationdata.h
pdfium/core/fxcodec/JBig2_DocumentContext.h
pdfium/core/fxcodec/codec/ccodec_basicmodule.h
pdfium/core/fxcodec/codec/ccodec_faxmodule.h
pdfium/core/fxcodec/codec/ccodec_flatemodule.h
pdfium/core/fxcodec/codec/ccodec_iccmodule.h
pdfium/core/fxcodec/codec/ccodec_jbig2module.h
pdfium/core/fxcodec/codec/ccodec_jpegmodule.h
pdfium/core/fxcodec/codec/ccodec_jpxmodule.h
pdfium/core/fxcodec/codec/ccodec_scanlinedecoder.h
pdfium/core/fxcodec/codec/codec_int.h
pdfium/core/fxcodec/codec/fx_codec.cpp
pdfium/core/fxcodec/codec/fx_codec_fax.cpp
pdfium/core/fxcodec/codec/fx_codec_flate.cpp
pdfium/core/fxcodec/codec/fx_codec_icc.cpp
pdfium/core/fxcodec/codec/fx_codec_jbig.cpp
pdfium/core/fxcodec/codec/fx_codec_jpeg.cpp
pdfium/core/fxcodec/codec/fx_codec_jpx_opj.cpp
pdfium/core/fxcodec/fx_codec.h
pdfium/core/fxcodec/fx_codec_def.h
pdfium/core/fxcodec/jbig2/JBig2_ArithDecoder.cpp pdfium/core/fxcodec/jbig2/JBig2_ArithDecoder.h
pdfium/core/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp pdfium/core/fxcodec/jbig2/JBig2_ArithIntDecoder.h
pdfium/core/fxcodec/jbig2/JBig2_BitStream.cpp pdfium/core/fxcodec/jbig2/JBig2_BitStream.h
pdfium/core/fxcodec/jbig2/JBig2_Context.cpp pdfium/core/fxcodec/jbig2/JBig2_Context.h
pdfium/core/fxcodec/jbig2/JBig2_Define.h
pdfium/core/fxcodec/jbig2/JBig2_GrdProc.cpp pdfium/core/fxcodec/jbig2/JBig2_GrdProc.h
pdfium/core/fxcodec/jbig2/JBig2_GrrdProc.cpp pdfium/core/fxcodec/jbig2/JBig2_GrrdProc.h
pdfium/core/fxcodec/jbig2/JBig2_GsidProc.cpp pdfium/core/fxcodec/jbig2/JBig2_GsidProc.h
pdfium/core/fxcodec/jbig2/JBig2_HtrdProc.cpp pdfium/core/fxcodec/jbig2/JBig2_HtrdProc.h
pdfium/core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp pdfium/core/fxcodec/jbig2/JBig2_HuffmanDecoder.h
pdfium/core/fxcodec/jbig2/JBig2_HuffmanTable.cpp pdfium/core/fxcodec/jbig2/JBig2_HuffmanTable.h
pdfium/core/fxcodec/jbig2/JBig2_HuffmanTable_Standard.cpp pdfium/core/fxcodec/jbig2/JBig2_HuffmanTable_Standard.h
pdfium/core/fxcodec/jbig2/JBig2_Image.cpp pdfium/core/fxcodec/jbig2/JBig2_Image.h
pdfium/core/fxcodec/jbig2/JBig2_List.h
pdfium/core/fxcodec/jbig2/JBig2_Page.h
pdfium/core/fxcodec/jbig2/JBig2_PatternDict.cpp pdfium/core/fxcodec/jbig2/JBig2_PatternDict.h
pdfium/core/fxcodec/jbig2/JBig2_PddProc.cpp pdfium/core/fxcodec/jbig2/JBig2_PddProc.h
pdfium/core/fxcodec/jbig2/JBig2_SddProc.cpp pdfium/core/fxcodec/jbig2/JBig2_SddProc.h
pdfium/core/fxcodec/jbig2/JBig2_Segment.cpp pdfium/core/fxcodec/jbig2/JBig2_Segment.h
pdfium/core/fxcodec/jbig2/JBig2_SymbolDict.cpp pdfium/core/fxcodec/jbig2/JBig2_SymbolDict.h
pdfium/core/fxcodec/jbig2/JBig2_TrdProc.cpp pdfium/core/fxcodec/jbig2/JBig2_TrdProc.h
pdfium/core/fxcrt/cfx_observable.h
pdfium/core/fxcrt/cfx_retain_ptr.h
pdfium/core/fxcrt/cfx_shared_copy_on_write.h
pdfium/core/fxcrt/cfx_string_c_template.h
pdfium/core/fxcrt/cfx_string_data_template.h
pdfium/core/fxcrt/cfx_string_pool_template.h
pdfium/core/fxcrt/cfx_weak_ptr.h
pdfium/core/fxcrt/extension.h
pdfium/core/fxcrt/fx_basic.h
pdfium/core/fxcrt/fx_basic_array.cpp
pdfium/core/fxcrt/fx_basic_bstring.cpp
pdfium/core/fxcrt/fx_basic_buffer.cpp
pdfium/core/fxcrt/fx_basic_coords.cpp
pdfium/core/fxcrt/fx_basic_gcc.cpp
pdfium/core/fxcrt/fx_basic_list.cpp
pdfium/core/fxcrt/fx_basic_memmgr.cpp
pdfium/core/fxcrt/fx_basic_plex.cpp
pdfium/core/fxcrt/fx_basic_utf.cpp
pdfium/core/fxcrt/fx_basic_util.cpp
pdfium/core/fxcrt/fx_basic_wstring.cpp
pdfium/core/fxcrt/fx_bidi.cpp pdfium/core/fxcrt/fx_bidi.h
pdfium/core/fxcrt/fx_coordinates.h
pdfium/core/fxcrt/fx_ext.h
pdfium/core/fxcrt/fx_extension.cpp
pdfium/core/fxcrt/fx_memory.h
pdfium/core/fxcrt/fx_safe_types.h
pdfium/core/fxcrt/fx_stream.h
pdfium/core/fxcrt/fx_string.h
pdfium/core/fxcrt/fx_system.h
pdfium/core/fxcrt/fx_ucd.h
pdfium/core/fxcrt/fx_ucddata.cpp
pdfium/core/fxcrt/fx_unicode.cpp
pdfium/core/fxcrt/fx_xml.h
pdfium/core/fxcrt/fx_xml_composer.cpp
pdfium/core/fxcrt/fx_xml_parser.cpp
pdfium/core/fxcrt/fxcrt_posix.cpp pdfium/core/fxcrt/fxcrt_posix.h
pdfium/core/fxcrt/fxcrt_stream.cpp
pdfium/core/fxcrt/fxcrt_windows.cpp pdfium/core/fxcrt/fxcrt_windows.h
pdfium/core/fxcrt/plex.h
pdfium/core/fxcrt/xml_int.h
pdfium/core/fxge/agg/fx_agg_driver.cpp pdfium/core/fxge/agg/fx_agg_driver.h
pdfium/core/fxge/cfx_facecache.h
pdfium/core/fxge/cfx_fontcache.h
pdfium/core/fxge/cfx_fontmapper.h
pdfium/core/fxge/cfx_fontmgr.h
pdfium/core/fxge/cfx_fxgedevice.h
pdfium/core/fxge/cfx_gemodule.h
pdfium/core/fxge/cfx_graphstate.h
pdfium/core/fxge/cfx_graphstatedata.h
pdfium/core/fxge/cfx_pathdata.h
pdfium/core/fxge/cfx_renderdevice.h
pdfium/core/fxge/cfx_substfont.h
pdfium/core/fxge/cfx_unicodeencoding.h
pdfium/core/fxge/cfx_windowsdevice.h
pdfium/core/fxge/dib/dib_int.h
pdfium/core/fxge/dib/fx_dib_composite.cpp
pdfium/core/fxge/dib/fx_dib_convert.cpp
pdfium/core/fxge/dib/fx_dib_engine.cpp
pdfium/core/fxge/dib/fx_dib_main.cpp
pdfium/core/fxge/dib/fx_dib_transform.cpp
pdfium/core/fxge/fontdata/chromefontdata/FoxitDingbats.cpp
pdfium/core/fxge/fontdata/chromefontdata/FoxitFixed.cpp
pdfium/core/fxge/fontdata/chromefontdata/FoxitFixedBold.cpp
pdfium/core/fxge/fontdata/chromefontdata/FoxitFixedBoldItalic.cpp
pdfium/core/fxge/fontdata/chromefontdata/FoxitFixedItalic.cpp
pdfium/core/fxge/fontdata/chromefontdata/FoxitSans.cpp
pdfium/core/fxge/fontdata/chromefontdata/FoxitSansBold.cpp
pdfium/core/fxge/fontdata/chromefontdata/FoxitSansBoldItalic.cpp
pdfium/core/fxge/fontdata/chromefontdata/FoxitSansItalic.cpp
pdfium/core/fxge/fontdata/chromefontdata/FoxitSansMM.cpp
pdfium/core/fxge/fontdata/chromefontdata/FoxitSerif.cpp
pdfium/core/fxge/fontdata/chromefontdata/FoxitSerifBold.cpp
pdfium/core/fxge/fontdata/chromefontdata/FoxitSerifBoldItalic.cpp
pdfium/core/fxge/fontdata/chromefontdata/FoxitSerifItalic.cpp
pdfium/core/fxge/fontdata/chromefontdata/FoxitSerifMM.cpp
pdfium/core/fxge/fontdata/chromefontdata/FoxitSymbol.cpp
pdfium/core/fxge/fontdata/chromefontdata/chromefontdata.h
pdfium/core/fxge/freetype/fx_freetype.cpp
pdfium/core/fxge/fx_dib.h
pdfium/core/fxge/fx_font.h
pdfium/core/fxge/fx_freetype.h
pdfium/core/fxge/ge/cfx_cliprgn.cpp pdfium/core/fxge/ge/cfx_cliprgn.h
pdfium/core/fxge/ge/cfx_facecache.cpp
pdfium/core/fxge/ge/cfx_folderfontinfo.cpp pdfium/core/fxge/ge/cfx_folderfontinfo.h
pdfium/core/fxge/ge/cfx_font.cpp
pdfium/core/fxge/ge/cfx_fontcache.cpp
pdfium/core/fxge/ge/cfx_fontmapper.cpp
pdfium/core/fxge/ge/cfx_fontmgr.cpp
pdfium/core/fxge/ge/cfx_gemodule.cpp
pdfium/core/fxge/ge/cfx_graphstate.cpp
pdfium/core/fxge/ge/cfx_graphstatedata.cpp
pdfium/core/fxge/ge/cfx_pathdata.cpp
pdfium/core/fxge/ge/cfx_renderdevice.cpp
pdfium/core/fxge/ge/cfx_substfont.cpp
pdfium/core/fxge/ge/cfx_unicodeencoding.cpp
pdfium/core/fxge/ge/cttfontdesc.cpp pdfium/core/fxge/ge/cttfontdesc.h
pdfium/core/fxge/ge/fx_ge_fontmap.cpp
pdfium/core/fxge/ge/fx_ge_linux.cpp
pdfium/core/fxge/ge/fx_ge_text.cpp
pdfium/core/fxge/ge/fx_text_int.h
pdfium/core/fxge/ifx_renderdevicedriver.cpp pdfium/core/fxge/ifx_renderdevicedriver.h
pdfium/core/fxge/ifx_systemfontinfo.h
pdfium/core/fxge/win32/cfx_windowsdib.h
pdfium/fpdfsdk/cba_annotiterator.cpp pdfium/fpdfsdk/cba_annotiterator.h
pdfium/fpdfsdk/cfx_systemhandler.cpp pdfium/fpdfsdk/cfx_systemhandler.h
pdfium/fpdfsdk/cpdfsdk_annot.cpp pdfium/fpdfsdk/cpdfsdk_annot.h
pdfium/fpdfsdk/cpdfsdk_annothandlermgr.cpp pdfium/fpdfsdk/cpdfsdk_annothandlermgr.h
pdfium/fpdfsdk/cpdfsdk_annotiterator.cpp pdfium/fpdfsdk/cpdfsdk_annotiterator.h
pdfium/fpdfsdk/cpdfsdk_baannot.cpp pdfium/fpdfsdk/cpdfsdk_baannot.h
pdfium/fpdfsdk/cpdfsdk_baannothandler.cpp pdfium/fpdfsdk/cpdfsdk_baannothandler.h
pdfium/fpdfsdk/cpdfsdk_datetime.cpp pdfium/fpdfsdk/cpdfsdk_datetime.h
pdfium/fpdfsdk/cpdfsdk_formfillenvironment.cpp pdfium/fpdfsdk/cpdfsdk_formfillenvironment.h
pdfium/fpdfsdk/cpdfsdk_interform.cpp pdfium/fpdfsdk/cpdfsdk_interform.h
pdfium/fpdfsdk/cpdfsdk_pageview.cpp pdfium/fpdfsdk/cpdfsdk_pageview.h
pdfium/fpdfsdk/cpdfsdk_widget.cpp pdfium/fpdfsdk/cpdfsdk_widget.h
pdfium/fpdfsdk/cpdfsdk_widgethandler.cpp pdfium/fpdfsdk/cpdfsdk_widgethandler.h
pdfium/fpdfsdk/formfiller/cba_fontmap.cpp pdfium/fpdfsdk/formfiller/cba_fontmap.h
pdfium/fpdfsdk/formfiller/cffl_checkbox.cpp pdfium/fpdfsdk/formfiller/cffl_checkbox.h
pdfium/fpdfsdk/formfiller/cffl_combobox.cpp pdfium/fpdfsdk/formfiller/cffl_combobox.h
pdfium/fpdfsdk/formfiller/cffl_formfiller.cpp pdfium/fpdfsdk/formfiller/cffl_formfiller.h
pdfium/fpdfsdk/formfiller/cffl_interactiveformfiller.cpp pdfium/fpdfsdk/formfiller/cffl_interactiveformfiller.h
pdfium/fpdfsdk/formfiller/cffl_listbox.cpp pdfium/fpdfsdk/formfiller/cffl_listbox.h
pdfium/fpdfsdk/formfiller/cffl_pushbutton.cpp pdfium/fpdfsdk/formfiller/cffl_pushbutton.h
pdfium/fpdfsdk/formfiller/cffl_radiobutton.cpp pdfium/fpdfsdk/formfiller/cffl_radiobutton.h
pdfium/fpdfsdk/formfiller/cffl_textfield.cpp pdfium/fpdfsdk/formfiller/cffl_textfield.h
pdfium/fpdfsdk/fpdf_dataavail.cpp
pdfium/fpdfsdk/fpdf_ext.cpp
pdfium/fpdfsdk/fpdf_flatten.cpp
pdfium/fpdfsdk/fpdf_progressive.cpp
pdfium/fpdfsdk/fpdf_searchex.cpp
pdfium/fpdfsdk/fpdf_sysfontinfo.cpp
pdfium/fpdfsdk/fpdf_transformpage.cpp
pdfium/fpdfsdk/fpdfdoc.cpp
pdfium/fpdfsdk/fpdfeditimg.cpp
pdfium/fpdfsdk/fpdfeditpage.cpp
pdfium/fpdfsdk/fpdfformfill.cpp
pdfium/fpdfsdk/fpdfppo.cpp
pdfium/fpdfsdk/fpdfsave.cpp
pdfium/fpdfsdk/fpdftext.cpp
pdfium/fpdfsdk/fpdfview.cpp
pdfium/fpdfsdk/fsdk_actionhandler.cpp pdfium/fpdfsdk/fsdk_actionhandler.h
pdfium/fpdfsdk/fsdk_pauseadapter.cpp pdfium/fpdfsdk/fsdk_pauseadapter.h
pdfium/fpdfsdk/fxedit/fx_edit.h
pdfium/fpdfsdk/fxedit/fxet_ap.cpp
pdfium/fpdfsdk/fxedit/fxet_edit.cpp pdfium/fpdfsdk/fxedit/fxet_edit.h
pdfium/fpdfsdk/fxedit/fxet_list.cpp pdfium/fpdfsdk/fxedit/fxet_list.h
pdfium/fpdfsdk/pdfsdk_fieldaction.cpp pdfium/fpdfsdk/pdfsdk_fieldaction.h
pdfium/fpdfsdk/pdfwindow/PWL_Button.cpp pdfium/fpdfsdk/pdfwindow/PWL_Button.h
pdfium/fpdfsdk/pdfwindow/PWL_Caret.cpp pdfium/fpdfsdk/pdfwindow/PWL_Caret.h
pdfium/fpdfsdk/pdfwindow/PWL_ComboBox.cpp pdfium/fpdfsdk/pdfwindow/PWL_ComboBox.h
pdfium/fpdfsdk/pdfwindow/PWL_Edit.cpp pdfium/fpdfsdk/pdfwindow/PWL_Edit.h
pdfium/fpdfsdk/pdfwindow/PWL_EditCtrl.cpp pdfium/fpdfsdk/pdfwindow/PWL_EditCtrl.h
pdfium/fpdfsdk/pdfwindow/PWL_FontMap.cpp pdfium/fpdfsdk/pdfwindow/PWL_FontMap.h
pdfium/fpdfsdk/pdfwindow/PWL_Icon.cpp pdfium/fpdfsdk/pdfwindow/PWL_Icon.h
pdfium/fpdfsdk/pdfwindow/PWL_ListBox.cpp pdfium/fpdfsdk/pdfwindow/PWL_ListBox.h
pdfium/fpdfsdk/pdfwindow/PWL_ScrollBar.cpp pdfium/fpdfsdk/pdfwindow/PWL_ScrollBar.h
pdfium/fpdfsdk/pdfwindow/PWL_SpecialButton.cpp pdfium/fpdfsdk/pdfwindow/PWL_SpecialButton.h
pdfium/fpdfsdk/pdfwindow/PWL_Utils.cpp pdfium/fpdfsdk/pdfwindow/PWL_Utils.h
pdfium/fpdfsdk/pdfwindow/PWL_Wnd.cpp pdfium/fpdfsdk/pdfwindow/PWL_Wnd.h
pdfium/fpdfsdk/pdfwindow/cpwl_color.h
pdfium/public/fpdf_dataavail.h
pdfium/public/fpdf_doc.h
pdfium/public/fpdf_edit.h
pdfium/public/fpdf_ext.h
pdfium/public/fpdf_flatten.h
pdfium/public/fpdf_formfill.h
pdfium/public/fpdf_fwlevent.h
pdfium/public/fpdf_ppo.h
pdfium/public/fpdf_progressive.h
pdfium/public/fpdf_save.h
pdfium/public/fpdf_searchex.h
pdfium/public/fpdf_sysfontinfo.h
pdfium/public/fpdf_text.h
pdfium/public/fpdf_transformpage.h
pdfium/public/fpdfview.h
pdfium/third_party/agg23/agg_basics.h
pdfium/third_party/agg23/agg_clip_liang_barsky.h
pdfium/third_party/agg23/agg_conv_dash.h
pdfium/third_party/agg23/agg_conv_stroke.h
pdfium/third_party/agg23/agg_curves.cpp pdfium/third_party/agg23/agg_curves.h
pdfium/third_party/agg23/agg_path_storage.cpp pdfium/third_party/agg23/agg_path_storage.h
pdfium/third_party/agg23/agg_rasterizer_scanline_aa.cpp pdfium/third_party/agg23/agg_rasterizer_scanline_aa.h
pdfium/third_party/agg23/agg_renderer_scanline.h
pdfium/third_party/agg23/agg_rendering_buffer.h
pdfium/third_party/agg23/agg_scanline_u.h
pdfium/third_party/agg23/agg_vcgen_dash.cpp
pdfium/third_party/agg23/agg_vcgen_stroke.cpp
pdfium/third_party/base/logging.h
pdfium/third_party/base/macros.h
pdfium/third_party/base/numerics/safe_conversions.h
pdfium/third_party/base/numerics/safe_conversions_impl.h
pdfium/third_party/base/numerics/safe_math.h
pdfium/third_party/base/numerics/safe_math_impl.h
pdfium/third_party/base/stl_util.h
pdfium/third_party/bigint/BigInteger.cc pdfium/third_party/bigint/BigInteger.hh
pdfium/third_party/bigint/BigIntegerLibrary.hh
pdfium/third_party/bigint/BigIntegerUtils.cc pdfium/third_party/bigint/BigIntegerUtils.hh
pdfium/third_party/bigint/BigUnsigned.cc pdfium/third_party/bigint/BigUnsigned.hh
pdfium/third_party/bigint/BigUnsignedInABase.cc pdfium/third_party/bigint/BigUnsignedInABase.hh
pdfium/third_party/bigint/NumberlikeArray.hh
pdfium/third_party/freetype/include/freetype/freetype.h
pdfium/third_party/freetype/include/freetype/ftmm.h
pdfium/third_party/freetype/include/freetype/ftotval.h
pdfium/third_party/freetype/include/freetype/ftoutln.h
pdfium/third_party/freetype/include/freetype/internal/ftobjs.h
pdfium/third_party/freetype/include/freetype/internal/ftstream.h
pdfium/third_party/freetype/include/freetype/internal/tttypes.h
pdfium/third_party/freetype/include/freetype/tttables.h
pdfium/third_party/freetype/include/ft2build.h
pdfium/third_party/freetype/src/base/ftbase.c pdfium/third_party/freetype/src/base/ftbase.h
pdfium/third_party/freetype/src/base/ftbitmap.c
pdfium/third_party/freetype/src/base/ftglyph.c
pdfium/third_party/freetype/src/base/ftinit.c
pdfium/third_party/freetype/src/base/ftlcdfil.c
pdfium/third_party/freetype/src/base/ftmm.c
pdfium/third_party/freetype/src/base/ftsystem.c
pdfium/third_party/freetype/src/cff/cff.c
pdfium/third_party/freetype/src/cff/cffobjs.h
pdfium/third_party/freetype/src/cff/cfftypes.h
pdfium/third_party/freetype/src/cid/type1cid.c
pdfium/third_party/freetype/src/psaux/psaux.c
pdfium/third_party/freetype/src/pshinter/pshinter.c
pdfium/third_party/freetype/src/psnames/psmodule.c
pdfium/third_party/freetype/src/raster/raster.c
pdfium/third_party/freetype/src/sfnt/sfnt.c
pdfium/third_party/freetype/src/smooth/smooth.c
pdfium/third_party/freetype/src/truetype/truetype.c
pdfium/third_party/freetype/src/type1/type1.c
pdfium/third_party/lcms/include/lcms2.h
pdfium/third_party/lcms/include/lcms2_plugin.h
pdfium/third_party/lcms/src/cmsalpha.c
pdfium/third_party/lcms/src/cmscam02.c
pdfium/third_party/lcms/src/cmscgats.c
pdfium/third_party/lcms/src/cmscnvrt.c
pdfium/third_party/lcms/src/cmserr.c
pdfium/third_party/lcms/src/cmsgamma.c
pdfium/third_party/lcms/src/cmsgmt.c
pdfium/third_party/lcms/src/cmshalf.c
pdfium/third_party/lcms/src/cmsintrp.c
pdfium/third_party/lcms/src/cmsio0.c
pdfium/third_party/lcms/src/cmsio1.c
pdfium/third_party/lcms/src/cmslut.c
pdfium/third_party/lcms/src/cmsmd5.c
pdfium/third_party/lcms/src/cmsmtrx.c
pdfium/third_party/lcms/src/cmsnamed.c
pdfium/third_party/lcms/src/cmsopt.c
pdfium/third_party/lcms/src/cmspack.c
pdfium/third_party/lcms/src/cmspcs.c
pdfium/third_party/lcms/src/cmsplugin.c
pdfium/third_party/lcms/src/cmsps2.c
pdfium/third_party/lcms/src/cmssamp.c
pdfium/third_party/lcms/src/cmssm.c
pdfium/third_party/lcms/src/cmstypes.c
pdfium/third_party/lcms/src/cmsvirt.c
pdfium/third_party/lcms/src/cmswtpnt.c
pdfium/third_party/lcms/src/cmsxform.c
pdfium/third_party/libjpeg/cderror.h
pdfium/third_party/libjpeg/cdjpeg.h
pdfium/third_party/libjpeg/fpdfapi_jcapimin.c
pdfium/third_party/libjpeg/fpdfapi_jcapistd.c
pdfium/third_party/libjpeg/fpdfapi_jccoefct.c
pdfium/third_party/libjpeg/fpdfapi_jccolor.c
pdfium/third_party/libjpeg/fpdfapi_jcdctmgr.c
pdfium/third_party/libjpeg/fpdfapi_jchuff.c
pdfium/third_party/libjpeg/fpdfapi_jcinit.c
pdfium/third_party/libjpeg/fpdfapi_jcmainct.c
pdfium/third_party/libjpeg/fpdfapi_jcmarker.c
pdfium/third_party/libjpeg/fpdfapi_jcmaster.c
pdfium/third_party/libjpeg/fpdfapi_jcomapi.c
pdfium/third_party/libjpeg/fpdfapi_jcparam.c
pdfium/third_party/libjpeg/fpdfapi_jcphuff.c
pdfium/third_party/libjpeg/fpdfapi_jcprepct.c
pdfium/third_party/libjpeg/fpdfapi_jcsample.c
pdfium/third_party/libjpeg/fpdfapi_jctrans.c
pdfium/third_party/libjpeg/fpdfapi_jdapimin.c
pdfium/third_party/libjpeg/fpdfapi_jdapistd.c
pdfium/third_party/libjpeg/fpdfapi_jdcoefct.c
pdfium/third_party/libjpeg/fpdfapi_jdcolor.c
pdfium/third_party/libjpeg/fpdfapi_jddctmgr.c
pdfium/third_party/libjpeg/fpdfapi_jdhuff.c
pdfium/third_party/libjpeg/fpdfapi_jdinput.c
pdfium/third_party/libjpeg/fpdfapi_jdmainct.c
pdfium/third_party/libjpeg/fpdfapi_jdmarker.c
pdfium/third_party/libjpeg/fpdfapi_jdmaster.c
pdfium/third_party/libjpeg/fpdfapi_jdmerge.c
pdfium/third_party/libjpeg/fpdfapi_jdphuff.c
pdfium/third_party/libjpeg/fpdfapi_jdpostct.c
pdfium/third_party/libjpeg/fpdfapi_jdsample.c
pdfium/third_party/libjpeg/fpdfapi_jdtrans.c
pdfium/third_party/libjpeg/fpdfapi_jerror.c
pdfium/third_party/libjpeg/fpdfapi_jfdctfst.c
pdfium/third_party/libjpeg/fpdfapi_jfdctint.c
pdfium/third_party/libjpeg/fpdfapi_jidctfst.c
pdfium/third_party/libjpeg/fpdfapi_jidctint.c
pdfium/third_party/libjpeg/fpdfapi_jidctred.c
pdfium/third_party/libjpeg/fpdfapi_jmemmgr.c
pdfium/third_party/libjpeg/fpdfapi_jmemnobs.c
pdfium/third_party/libjpeg/fpdfapi_jutils.c
pdfium/third_party/libjpeg/jchuff.h
pdfium/third_party/libjpeg/jconfig.h
pdfium/third_party/libjpeg/jdct.h
pdfium/third_party/libjpeg/jdhuff.h
pdfium/third_party/libjpeg/jerror.h
pdfium/third_party/libjpeg/jinclude.h
pdfium/third_party/libjpeg/jmemsys.h
pdfium/third_party/libjpeg/jmorecfg.h
pdfium/third_party/libjpeg/jpegint.h
pdfium/third_party/libjpeg/jpeglib.h
pdfium/third_party/libjpeg/jversion.h
pdfium/third_party/libjpeg/transupp.h
pdfium/third_party/libopenjpeg20/bio.c
pdfium/third_party/libopenjpeg20/cio.c
pdfium/third_party/libopenjpeg20/dwt.c
pdfium/third_party/libopenjpeg20/event.c
pdfium/third_party/libopenjpeg20/function_list.c
pdfium/third_party/libopenjpeg20/image.c
pdfium/third_party/libopenjpeg20/invert.c
pdfium/third_party/libopenjpeg20/j2k.c
pdfium/third_party/libopenjpeg20/jp2.c
pdfium/third_party/libopenjpeg20/mct.c
pdfium/third_party/libopenjpeg20/mqc.c
pdfium/third_party/libopenjpeg20/openjpeg.c
pdfium/third_party/libopenjpeg20/opj_clock.c
pdfium/third_party/libopenjpeg20/pi.c
pdfium/third_party/libopenjpeg20/raw.c
pdfium/third_party/libopenjpeg20/t1.c
pdfium/third_party/libopenjpeg20/t2.c
pdfium/third_party/libopenjpeg20/tcd.c
pdfium/third_party/libopenjpeg20/tgt.c
pdfium/third_party/zlib_v128/adler32.c
pdfium/third_party/zlib_v128/compress.c
pdfium/third_party/zlib_v128/crc32.c
pdfium/third_party/zlib_v128/deflate.c
pdfium/third_party/zlib_v128/gzclose.c
pdfium/third_party/zlib_v128/gzlib.c
pdfium/third_party/zlib_v128/gzread.c
pdfium/third_party/zlib_v128/gzwrite.c
pdfium/third_party/zlib_v128/infback.c
pdfium/third_party/zlib_v128/inffast.c
pdfium/third_party/zlib_v128/inflate.c
pdfium/third_party/zlib_v128/inftrees.c
pdfium/third_party/zlib_v128/trees.c
pdfium/third_party/zlib_v128/uncompr.c
pdfium/third_party/zlib_v128/zutil.c
aboutdialog.cpp aboutdialog.h aboutdialog.ui
addoptiondialog.cpp addoptiondialog.h addoptiondialog.ui
addtagdialog.cpp addtagdialog.h addtagdialog.ui
arraydialog.cpp arraydialog.h arraydialog.ui
blockdata.cpp blockdata.h
cmdparser.cpp cmdparser.h
configdialog.cpp configdialog.h configdialog.ui
documentview.cpp documentview.h
dropshadowlabel.cpp dropshadowlabel.h
encodingdialog.cpp encodingdialog.h encodingdialog.ui
exportdialog.cpp exportdialog.h exportdialog.ui
filechooser.cpp filechooser.h filechooser.ui
findwidget.cpp findwidget.h findwidget.ui
geticon.cpp geticon.h
gotolinewidget.cpp gotolinewidget.h gotolinewidget.ui
graphicfilechooser.cpp graphicfilechooser.h graphicfilechooser.ui
icondelegate.cpp icondelegate.h
jsbridge.cpp
keysequencedialog.cpp keysequencedialog.h keysequencedialog.ui
latexeditor.cpp latexeditor.h
latexeditorview.cpp latexeditorview.h
latexhighlighter.cpp latexhighlighter.h
letterdialog.cpp letterdialog.h letterdialog.ui
lightfindwidget.cpp lightfindwidget.h
lightgotolinewidget.cpp lightgotolinewidget.h
lightlatexeditor.cpp lightlatexeditor.h
lightlatexhighlighter.cpp lightlatexhighlighter.h
lightlinenumberwidget.cpp lightlinenumberwidget.h
linenumberwidget.cpp linenumberwidget.h
logeditor.cpp logeditor.h
loghighlighter.cpp loghighlighter.h
minisplitter.cpp minisplitter.h
pageitem.cpp pageitem.h
pdfviewer.cpp pdfviewer.h
pdfviewerwidget.cpp pdfviewerwidget.h
playerbutton.cpp playerbutton.h
presentationview.cpp presentationview.h
qpdfbookmarkmodel.cpp qpdfbookmarkmodel.h
qpdfdocument.cpp qpdfdocument.h qpdfdocument_p.h
qpdfdocumentrenderoptions.h
qpdfnamespace.h
quickbeamerdialog.cpp quickbeamerdialog.h quickbeamerdialog.ui
quickdocumentdialog.cpp quickdocumentdialog.h quickdocumentdialog.ui
quickxelatexdialog.cpp quickxelatexdialog.h quickxelatexdialog.ui
refdialog.cpp refdialog.h refdialog.ui
replacewidget.cpp replacewidget.h replacewidget.ui
scandialog.cpp scandialog.h scandialog.ui
singleapp/qtlocalpeer.cpp singleapp/qtlocalpeer.h
singleapp/qtlockedfile.cpp singleapp/qtlockedfile.h
singleapp/qtsingleapplication.cpp singleapp/qtsingleapplication.h
singleapp/qtsinglecoreapplication.cpp singleapp/qtsinglecoreapplication.h
sourceview.cpp sourceview.h
spellerdialog.cpp spellerdialog.h spellerdialog.ui
structdialog.cpp structdialog.h structdialog.ui
svnhelper.cpp svnhelper.h
symbollistwidget.cpp symbollistwidget.h
synctex_parser.c synctex_parser.h
synctex_parser_advanced.h
synctex_parser_utils.c synctex_parser_utils.h
synctex_version.h
tabbingdialog.cpp tabbingdialog.h tabbingdialog.ui
tabdialog.cpp tabdialog.h tabdialog.ui
texdocdialog.cpp texdocdialog.h texdocdialog.ui
texmaker.cpp texmaker.h
texmakerapp.cpp texmakerapp.h
textblockselection.h
theme.h
unicodedialog.cpp unicodedialog.h unicodedialog.ui
unicodeview.cpp unicodeview.h
usercompletiondialog.cpp usercompletiondialog.h usercompletiondialog.ui
usermenudialog.cpp usermenudialog.h usermenudialog.ui
userquickdialog.cpp userquickdialog.h userquickdialog.ui
usertagslistwidget.cpp usertagslistwidget.h
usertooldialog.cpp usertooldialog.h usertooldialog.ui
versiondialog.cpp versiondialog.h versiondialog.ui
x11fontdialog.cpp x11fontdialog.h x11fontdialog.ui
xmltagslistwidget.cpp xmltagslistwidget.h
)

if (${INTERNALBROWSER} STREQUAL "yes")
find_package(Qt6 REQUIRED COMPONENTS WebEngineWidgets)
set(texmaker_SRCS
${texmaker_SRCS}
browser.cpp browser.h
)
endif()


add_executable(${PROJECT_NAME} WIN32 MACOSX_BUNDLE ${texmaker_SRCS} main.cpp texmaker.qrc)

set(TEXMAKER_INCLUDE_DIRECTORIES
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}/encodingprober
  ${CMAKE_CURRENT_SOURCE_DIR}/singleapp
  ${CMAKE_CURRENT_SOURCE_DIR}/hunspell
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/fpdfsdk
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/fpdfsdk/javascript
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/fpdfsdk/fpdfxfa
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/fpdfsdk/pdfwindow
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/fpdfsdk/fxedit
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/fpdfsdk/formfiller
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/testing
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/testing/tools
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/testing/libfuzzer
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/testing/utils
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/testing/resources
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/testing/resources/javascript
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/testing/resources/pixel
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/build_overrides
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/fxjs
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/samples
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fxge
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fxge/fontdata
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fxge/fontdata/chromefontdata
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fxge/dib
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fxge/apple
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fxge/skia
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fxge/agg
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fxge/freetype
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fxge/win32
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fxge/ge
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fxge/android
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fxcrt
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fpdftext
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fpdfapi
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fpdfapi/edit
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fpdfapi/parser
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fpdfapi/render
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fpdfapi/page
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fpdfapi/font
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fpdfapi/cmaps
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fpdfapi/cmaps/CNS1
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fpdfapi/cmaps/Japan1
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fpdfapi/cmaps/Korea1
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fpdfapi/cmaps/GB1
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fdrm
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fdrm/crypto
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fpdfdoc
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fxcodec
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fxcodec/lbmp
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fxcodec/jbig2
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fxcodec/codec
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/core/fxcodec/lgif
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/skia
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/skia/ext
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/skia/config
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/public
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/infra
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/infra/config
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/docs
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/zlib_v128
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/bigint
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/libpng16
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/libpng16/arm
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/libpng16/contrib
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/libpng16/contrib/intel
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/libtiff
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/pymock
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/libjpeg
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/lcms
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/lcms/src
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/lcms/include
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype/src
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype/src/psaux
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype/src/smooth
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype/src/type1
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype/src/raster
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype/src/truetype
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype/src/sfnt
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype/src/cff
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype/src/cid
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype/src/pshinter
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype/src/psnames
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype/src/base
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype/include
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype/include/freetype
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype/include/freetype/config
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype/include/freetype/internal
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/freetype/include/freetype/internal/services
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/libopenjpeg20
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/base
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/base/numerics
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/third_party/agg23
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fwl
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fwl/theme
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fwl/core
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fxgraphics
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fxbarcode
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fxbarcode/common
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fxbarcode/common/reedsolomon
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fxbarcode/oned
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fxbarcode/qrcode
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fxbarcode/datamatrix
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fxbarcode/pdf417
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fde
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fde/xml
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fde/css
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fde/tto
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fxfa
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fxfa/app
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fxfa/parser
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fxfa/fm2js
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fgas
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fgas/localization
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fgas/layout
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fgas/font
  ${CMAKE_CURRENT_SOURCE_DIR}/pdfium/xfa/fgas/crt
)


target_include_directories( ${PROJECT_NAME} PUBLIC ${TEXMAKER_INCLUDE_DIRECTORIES})

target_compile_definitions(${PROJECT_NAME} PRIVATE
    TEXMAKERVERSION=${PROJECT_VERSION}
    QT_NO_DEPRECATED_WARNINGS
    QT_NO_EXCEPTIONS
    QT_NO_DYNAMIC_CAST
    QT_NO_DEBUG
    FT2_BUILD_LIBRARY
    NOMINMAX
    OPJ_STATIC
    PNG_PREFIX
    PNG_USE_READ_MACROS
    V8_DEPRECATION_WARNINGS
)
add_definitions(
    -fno-exceptions
    -fno-rtti
    -w
    -fvisibility=hidden
    -fvisibility-inlines-hidden
    -fPIC
)

if (${INTERNALBROWSER} STREQUAL "yes")
target_compile_definitions(${PROJECT_NAME} PRIVATE
        INTERNAL_BROWSER
    )
endif()

if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
    target_compile_options(${PROJECT_NAME} PRIVATE -Wno-unused-variable -Wdeprecated-declarations)
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
    target_compile_options(${PROJECT_NAME} PRIVATE -wd"4267")
endif()


############## TRANSLATIONS ###################
file(GLOB ts_files trans/*.ts)
set_source_files_properties(${ts_files} PROPERTIES OUTPUT_LOCATION "${CMAKE_SOURCE_DIR}/trans")
qt6_add_lupdate(${PROJECT_NAME} TS_FILES ${ts_files} INCLUDE_DIRECTORIES ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/singleapp)
qt6_add_lrelease(${PROJECT_NAME} TS_FILES ${ts_files} QM_FILES_OUTPUT_VARIABLE qm_files NO_TARGET_DEPENDENCY)

set(copy_qm_commands)
foreach (filename IN LISTS qm_files)
list(APPEND copy_qm_commands
    COMMAND ${CMAKE_COMMAND} -E copy ${filename} ${CMAKE_CURRENT_SOURCE_DIR}/locale)
endforeach()
add_custom_target(${PROJECT_NAME}_updateqms ${copy_qm_commands})
add_dependencies(${PROJECT_NAME}_updateqms texmaker_lrelease)
################ LINUX #######################
if(UNIX AND NOT MACOS)
target_compile_definitions(${PROJECT_NAME} PRIVATE
        _FX_CPU_=_FX_X64_
        HAVE_UNISTD_H
    )
if (${COMPILEUSB} STREQUAL "yes")
  set(PREFIX ${PATH_TO_USBVERSION})
  target_compile_definitions(${PROJECT_NAME} PRIVATE
        USB_VERSION
    )
else()
  set(PREFIX "/usr")
endif()

if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
  set(CMAKE_INSTALL_PREFIX ${PREFIX} CACHE PATH "..." FORCE)
endif()
target_compile_definitions(${PROJECT_NAME} PRIVATE
    PREFIX=${PREFIX}
    )
if (${AUTHORIZELINUXQSTYLES} STREQUAL "yes")
target_compile_definitions(${PROJECT_NAME} PRIVATE
        AUTHORIZE_LINUX_QSTYLES
    )
endif()

set(UTILITIES_FILES
  ${CMAKE_SOURCE_DIR}/doc/doc10.png
  ${CMAKE_SOURCE_DIR}/doc/doc11.png
  ${CMAKE_SOURCE_DIR}/doc/doc12.png
  ${CMAKE_SOURCE_DIR}/doc/doc13.png
  ${CMAKE_SOURCE_DIR}/doc/doc14.png
  ${CMAKE_SOURCE_DIR}/doc/doc15.png
  ${CMAKE_SOURCE_DIR}/doc/doc16.png
  ${CMAKE_SOURCE_DIR}/doc/doc17.png
  ${CMAKE_SOURCE_DIR}/doc/doc1.png
  ${CMAKE_SOURCE_DIR}/doc/doc20.png
  ${CMAKE_SOURCE_DIR}/doc/doc21.png
  ${CMAKE_SOURCE_DIR}/doc/doc22.png
  ${CMAKE_SOURCE_DIR}/doc/doc2.png
  ${CMAKE_SOURCE_DIR}/doc/doc3.png
  ${CMAKE_SOURCE_DIR}/doc/doc4.png
  ${CMAKE_SOURCE_DIR}/doc/doc5.png
  ${CMAKE_SOURCE_DIR}/doc/doc6bis.png
  ${CMAKE_SOURCE_DIR}/doc/doc6.png
  ${CMAKE_SOURCE_DIR}/doc/doc7.png
  ${CMAKE_SOURCE_DIR}/doc/doc8.png
  ${CMAKE_SOURCE_DIR}/doc/doc9.png
  ${CMAKE_SOURCE_DIR}/doc/latexhelp.html
  ${CMAKE_SOURCE_DIR}/doc/usermanual_en.html
  ${CMAKE_SOURCE_DIR}/doc/usermanual_fr.html
  ${CMAKE_SOURCE_DIR}/utilities/AUTHORS
  ${CMAKE_SOURCE_DIR}/utilities/COPYING
  ${CMAKE_SOURCE_DIR}/utilities/CHANGELOG.txt
  ${CMAKE_SOURCE_DIR}/utilities/texmaker16x16.png
  ${CMAKE_SOURCE_DIR}/utilities/texmaker22x22.png
  ${CMAKE_SOURCE_DIR}/utilities/texmaker32x32.png
  ${CMAKE_SOURCE_DIR}/utilities/texmaker48x48.png
  ${CMAKE_SOURCE_DIR}/utilities/texmaker64x64.png
  ${CMAKE_SOURCE_DIR}/utilities/texmaker128x128.png
  ${CMAKE_SOURCE_DIR}/utilities/texmaker.svg
  ${CMAKE_SOURCE_DIR}/scripts/titlecase_selection.tms
  ${CMAKE_SOURCE_DIR}/scripts/hardwordwrap_selection_80col.tms
  ${CMAKE_SOURCE_DIR}/locale/qt_ar.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_ca.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_cs.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_da.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_de.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_en.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_es.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_fa.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_fi.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_fr.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_gl.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_he.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_hu.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_it.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_ja.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_ko.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_lt.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_pl.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_pt.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_ru.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_sk.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_sl.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_sv.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_uk.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_zh_CN.qm
  ${CMAKE_SOURCE_DIR}/locale/qt_zh_TW.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_de.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_es.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_fr.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_gl.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_it.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_pt.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_pt_BR.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_ru.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_zh_CN.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_zh_TW.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_cs.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_nl.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_fa.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_pl.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_hu.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_sr.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_el.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_se.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_ar.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_lv.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_uk.qm
  ${CMAKE_SOURCE_DIR}/locale/texmaker_vi_VN.qm
  ${CMAKE_SOURCE_DIR}/dictionaries/nl_NL.aff
  ${CMAKE_SOURCE_DIR}/dictionaries/nl_NL.dic
  ${CMAKE_SOURCE_DIR}/dictionaries/de_DE.aff
  ${CMAKE_SOURCE_DIR}/dictionaries/de_DE.dic
  ${CMAKE_SOURCE_DIR}/dictionaries/en_GB.aff
  ${CMAKE_SOURCE_DIR}/dictionaries/en_GB.dic
  ${CMAKE_SOURCE_DIR}/dictionaries/en_US.aff
  ${CMAKE_SOURCE_DIR}/dictionaries/en_US.dic
  ${CMAKE_SOURCE_DIR}/dictionaries/es_ES.aff
  ${CMAKE_SOURCE_DIR}/dictionaries/es_ES.dic
  ${CMAKE_SOURCE_DIR}/dictionaries/fr_FR.aff
  ${CMAKE_SOURCE_DIR}/dictionaries/fr_FR.dic
  ${CMAKE_SOURCE_DIR}/dictionaries/it_IT.aff
  ${CMAKE_SOURCE_DIR}/dictionaries/it_IT.dic
  ${CMAKE_SOURCE_DIR}/dictionaries/it_IT_README.txt
  ${CMAKE_SOURCE_DIR}/dictionaries/hu_HU.aff
  ${CMAKE_SOURCE_DIR}/dictionaries/hu_HU.dic
  ${CMAKE_SOURCE_DIR}/dictionaries/README_hu_HU.txt
  ${CMAKE_SOURCE_DIR}/dictionaries/cs_CZ.aff
  ${CMAKE_SOURCE_DIR}/dictionaries/cs_CZ.dic
  ${CMAKE_SOURCE_DIR}/dictionaries/pl_PL.aff
  ${CMAKE_SOURCE_DIR}/dictionaries/pl_PL.dic
  ${CMAKE_SOURCE_DIR}/dictionaries/pt_PT.aff
  ${CMAKE_SOURCE_DIR}/dictionaries/pt_PT.dic
  ${CMAKE_SOURCE_DIR}/dictionaries/ca_CA.aff
  ${CMAKE_SOURCE_DIR}/dictionaries/ca_CA.dic
  ${CMAKE_SOURCE_DIR}/dictionaries/README_pt_PT.txt
  ${CMAKE_SOURCE_DIR}/dictionaries/README_pl.txt
  ${CMAKE_SOURCE_DIR}/dictionaries/README_cs_CZ.txt
  ${CMAKE_SOURCE_DIR}/dictionaries/README_de_DE_frami.txt
  ${CMAKE_SOURCE_DIR}/dictionaries/README_DIC_fr_FR.txt
  ${CMAKE_SOURCE_DIR}/dictionaries/README_es_ES.txt
  ${CMAKE_SOURCE_DIR}/dictionaries/README_en_US.txt
)
set(DESKTOP_FILES
  ${CMAKE_SOURCE_DIR}/utilities/texmaker.desktop
)
set(ICON_FILES
  ${CMAKE_SOURCE_DIR}/utilities/texmaker.png
)
set(METAINFO_FILES
  ${CMAKE_SOURCE_DIR}/utilities/texmaker.metainfo.xml
)
if (${COMPILEUSB} STREQUAL "yes")
  install( TARGETS ${PROJECT_NAME} DESTINATION .)
  install( FILES ${UTILITIES_FILES} DESTINATION .)
  install( FILES ${DESKTOP_FILES} DESTINATION .)
  install( FILES ${ICON_FILES} DESTINATION .)
  install( FILES ${METAINFO_FILES} DESTINATION .)
else()
  install( TARGETS ${PROJECT_NAME} DESTINATION /bin)
  install( FILES ${UTILITIES_FILES} DESTINATION /share/texmaker)
  install( FILES ${DESKTOP_FILES} DESTINATION /share/applications)
  install( FILES ${ICON_FILES} DESTINATION /share/pixmaps)
  install( FILES ${METAINFO_FILES} DESTINATION /share/metainfo)
endif()
endif()
#############################################

################ MACOS #######################
if(MACOS)
target_link_libraries(${PROJECT_NAME} PRIVATE
        "-framework AppKit"
        "-framework CoreFoundation"
    )
endif()
#############################################

################ WIN #######################
if(WIN32)
    target_link_libraries(${PROJECT_NAME} PRIVATE
        advapi32
        gdi32
        user32
        shlwapi
    )
endif()
#############################################
target_link_libraries(${PROJECT_NAME} PRIVATE
        Qt6::Concurrent
        Qt6::Core
        Qt6::CorePrivate
        Qt6::Core5Compat
        Qt6::Gui
        Qt6::Network
        Qt6::PrintSupport
        Qt6::Qml
        Qt6::Widgets
        Qt6::Xml
)

if (${INTERNALBROWSER} STREQUAL "yes")
target_link_libraries(${PROJECT_NAME} PRIVATE
        Qt6::WebEngineWidgets
)
endif()

set_target_properties(${PROJECT_NAME} PROPERTIES
    WIN32_EXECUTABLE ON
    MACOSX_BUNDLE ON
)


