;@Ahk2Exe-AddResource LIB looking for standard lib

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review

Expand view Topic review: ;@Ahk2Exe-AddResource LIB looking for standard lib

;@Ahk2Exe-AddResource LIB looking for standard lib

Post by scsnake » 06 Oct 2017, 10:37

I often use ahkmini/ahkthread with some #include inside the dynamic script. For example:

Code: [Select all]GeSHi © Codebox Plus

#include <testlib>

If I want to compile for a single usable executable, I have to let the compiler include testlib in the resource. That is:

Code: [Select all]GeSHi © Codebox Plus

;@Ahk2Exe-AddResource LIB FULL/PATH/TO/testlib.ahk

Using modified Directive_AddResource function inside the Compiler/Directives.ahk, along with ListIncludes.ahk, the compiler will looking for non-full-path library in Compiler/../Lib . Wish somebody help refine it and may be HotKeyIt will adapt this idea ~

Code: [Select all] [Expand]GeSHi © Codebox Plus