From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Building an encapsulated library that uses GNAT sockets under Windows Date: Wed, 27 Apr 2016 07:53:15 +0100 Organization: A noiseless patient Spider Message-ID: References: <58a4942a-452a-4f32-b39b-f8f1fdbfe9fb@googlegroups.com> <68353b5d-94dc-4604-bdb1-00b48396ec1b@googlegroups.com> <33e880a1-df5f-450c-89e0-9b1d1a95e12f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="6e1b8fc3eb07ad055fcf36cde3a9ae8e"; logging-data="13500"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183NpaUieRwIE3cU4BDdCG4vqO4lv8fYBY=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:c4rowFjOjFa5rpCorhlvIn+tWAg= sha1:pwSo806AR7epw8XrIK1YoXuanHU= Xref: news.eternal-september.org comp.lang.ada:30297 Date: 2016-04-27T07:53:15+01:00 List-Id: Simon Wright writes: > case Library_Type is > when "relocatable" => > for Library_Src_Dir use "./include"; > for Library_Interface use Source_Units; > when "static" => > for Library_Src_Dir use "./include"; > for Interfaces use Sources; > end case; Actually, the Library_Src_Dir won't normally have the same content in the two cases, so they should be different (./include-relocatable, ./include-static for example). Or for Library_Src_Dir use "./include-" & Library_Type; case Library_Type is when "relocatable" => for Library_Interface use Source_Units; when "static" => for Interfaces use Sources; end case;